Skip to content

Commit

Permalink
Check if even is release directly in CI (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
shenanigansd authored Aug 13, 2024
1 parent 1718e1e commit 8c18118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
- name: Build and inspect Python 🐍 package 📦
uses: hynek/build-and-inspect-python-package@2dbbf2b252d3a3c7cec7a810e3ed5983bd17b13a # v2.8.0
with:
attest-build-provenance-github: ${{ startswith(github.event.ref, 'refs/tags/') }}
attest-build-provenance-github: ${{ github.event.action == 'published' }}

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
needs: build
if: ${{ startswith(github.event.ref, 'refs/tags/') }}
if: ${{ github.event.action == 'published' }}
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down

0 comments on commit 8c18118

Please sign in to comment.