diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 54e46ff..6ae5d8e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,6 +19,7 @@ jobs: python-version: "3.11" - name: build release distributions run: | + python -m pip install build python -m build --sdist --wheel --outdir dist/ . - name: upload wheel and tarball uses: actions/upload-artifact@v4 @@ -40,4 +41,5 @@ jobs: name: release-dists path: dist/ - name: Publish release distributions to PyPI + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1