fix: only release on tags
This commit is contained in:
parent
d5d9b7adad
commit
a632136806
1 changed files with 2 additions and 2 deletions
4
.github/workflows/publish.yaml
vendored
4
.github/workflows/publish.yaml
vendored
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
publish-to-pypi:
|
publish-to-pypi:
|
||||||
name: >-
|
name: >-
|
||||||
Publish Python 🐍 distribution 📦 to PyPI
|
Publish Python 🐍 distribution 📦 to PyPI
|
||||||
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' # only publish to PyPI on tag pushes or dev version for main
|
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -46,7 +46,7 @@ jobs:
|
||||||
name: >-
|
name: >-
|
||||||
Sign the Python 🐍 distribution 📦 with Sigstore
|
Sign the Python 🐍 distribution 📦 with Sigstore
|
||||||
and upload them to GitHub Release
|
and upload them to GitHub Release
|
||||||
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
||||||
needs:
|
needs:
|
||||||
- publish-to-pypi
|
- publish-to-pypi
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue