Skip to content

Commit

Permalink
ci: bypass pypi publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel authored Jan 31, 2022
1 parent 3fe1863 commit 2b0dfed
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ jobs:
gpg_private_key: ${{ secrets.TEST_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.TEST_GPG_PASSPHRASE }}

- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@cb4264d3319acaa2bea23d51ef67f80b4f775013
if: startsWith(github.ref, 'refs/tags/v')
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
# - name: Import GPG Key
# uses: crazy-max/ghaction-import-gpg@cb4264d3319acaa2bea23d51ef67f80b4f775013
# if: startsWith(github.ref, 'refs/tags/v')
# with:
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Publish to PyPI
- name: Publish to Test PyPI
if: startsWith(github.ref, 'refs/tags/v') != true
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
Expand Down

0 comments on commit 2b0dfed

Please sign in to comment.