mirror of
https://github.com/entropia/paperless-asn-qr-codes.git
synced 2024-06-13 10:00:02 +00:00
fix: only release on tags
This commit is contained in:
parent
8bc64be93b
commit
63d4ab5f17
4
.github/workflows/publish.yaml
vendored
4
.github/workflows/publish.yaml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
publish-to-pypi:
|
||||
name: >-
|
||||
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:
|
||||
- build
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -46,7 +46,7 @@ jobs:
|
|||
name: >-
|
||||
Sign the Python 🐍 distribution 📦 with Sigstore
|
||||
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:
|
||||
- publish-to-pypi
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue