From 42855a406f567da23ef1e3a7e33260c23723ef1b Mon Sep 17 00:00:00 2001 From: Colm Talbot Date: Tue, 28 May 2024 13:29:28 -0500 Subject: [PATCH] CI: add job to deploy releases --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) 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