From 88b1c63a2d3fa032142e02ce2a361cb43bcef007 Mon Sep 17 00:00:00 2001 From: Scott Claiborne Date: Tue, 5 May 2026 13:53:52 -0700 Subject: [PATCH] Build releases as wheel --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d0635a..62f1087 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,33 @@ jobs: - name: Run tests run: pytest -q + build-wheel: + needs: test + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.14' + + - name: Build wheel and sdist + run: | + python -m pip install --upgrade pip build + python -m build + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: aspython-dist + path: dist/ + + - name: Attach to GitHub release + uses: softprops/action-gh-release@v2 + with: + files: dist/* + build-exe: needs: test if: startsWith(github.ref, 'refs/tags/v') @@ -43,7 +70,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.14' - name: Install package + dev extras run: |