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: |