Skip to content

Commit 2b0dfed

Browse files
authored
ci: bypass pypi publish on release
1 parent 3fe1863 commit 2b0dfed

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ jobs:
6363
gpg_private_key: ${{ secrets.TEST_GPG_PRIVATE_KEY }}
6464
passphrase: ${{ secrets.TEST_GPG_PASSPHRASE }}
6565

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

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

0 commit comments

Comments
 (0)