Files
pyflowx/.github/workflows/release.yml
T
zhou fbd17536fd
CI / Lint & Typecheck (push) Failing after 8m55s
CI / Test (Python 3.11) (push) Failing after 31s
CI / Test (Python 3.13) (push) Failing after 31s
CI / Test (Python 3.8) (push) Failing after 31s
CI / Docs Build (push) Failing after 31s
ci: 重写 CI/Release 为 GitHub 兼容版本并加文档构建
ci.yml 改用标准 actions (checkout/setup-uv/setup-python), 新增
pyrefly 类型检查、coverage 阈值检查 (>=95%)、Sphinx 文档构建三个
job, 多版本矩阵测试 (py38/py311/py313)。release.yml 改用标准
actions, 发布到 PyPI + GitHub Release (替代原 Gitea Release)。
2026-07-05 12:32:00 +08:00

39 lines
821 B
YAML

name: Release
on:
push:
tags: ["v*.*.*"]
permissions:
contents: write
jobs:
release:
name: Build & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Build distributions
run: uv build
- name: Publish to PyPI
run: uv publish --token "${{ secrets.PYPI_TOKEN }}"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
body: |
Automated release from CI.
See [changelog](https://pyflowx.readthedocs.io/zh/latest/changelog.html) for details.
files: dist/*
draft: false
prerelease: false