From 059de6eef27eff10fa30a088d76bea76b5bf952a Mon Sep 17 00:00:00 2001 From: John Liu Date: Thu, 27 Aug 2026 20:43:59 -0700 Subject: [PATCH 1/2] Fix release.yml. Move it to .github/workflows/ --- release.yml => .github/workflows/release.yml | 24 ++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) rename release.yml => .github/workflows/release.yml (52%) diff --git a/release.yml b/.github/workflows/release.yml similarity index 52% rename from release.yml rename to .github/workflows/release.yml index a7f7331..859ffc9 100644 --- a/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,13 @@ name: Publish to PyPI on: - release: - types: [published] + push: + tags: + - "v*.*.*" # trigger on version tags: v1.0.0, v1.2.3, … jobs: pypi-publish: - name: Build and publish Python distribution to PyPI + name: Build and publish to PyPI runs-on: ubuntu-latest environment: name: pypi @@ -16,20 +17,25 @@ jobs: contents: read steps: - - name: Checkout repository + - name: Checkout repo uses: actions/checkout@v5 - - name: Set up Python 3.13 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.13" - - name: Install build dependencies - run: python -m pip install --upgrade pip build + - name: Install build tools + run: python3 -m pip install --upgrade pip hatchling twine build - - name: Build source and wheel distributions + - name: Build source and wheel dist # Uses hatchling as defined in pyproject.toml run: python -m build - - name: Publish package distributions to PyPI + - name: Validate dist files + run: twine check dist/* + + - name: Publish dist to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ From 59215fbcef9e7f308d7a1bbd603199a9949b5d90 Mon Sep 17 00:00:00 2001 From: John Liu Date: Thu, 27 Aug 2026 20:47:02 -0700 Subject: [PATCH 2/2] Fix release.yml. Move it to .github/workflows/ --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 859ffc9..045aa76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: - name: Build source and wheel dist # Uses hatchling as defined in pyproject.toml - run: python -m build + run: python3 -m build - name: Validate dist files run: twine check dist/*