Skip to content

Commit 03e4901

Browse files
authored
Update publish.yml
1 parent d7a7392 commit 03e4901

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010

11-
- if: ${{ github.event_name == 'release' }}
11+
- if: ${{ github.event_name == 'release' && secrets.PYPI_PASSWORD != '' }}
1212
name: Publish Release to PyPi
1313
uses: dciborow/pyaction@0.0.28
1414
with:
1515
pypi_publish: true
1616
pypi_password: ${{ secrets.PYPI_PASSWORD }}
1717

18-
- if: ${{ github.event_name == 'push' }}
18+
- if: ${{ github.event_name == 'push' && secrets.PYPI_PASSWORD != '' }}
1919
name: Publish RC to PyPi
2020
uses: dciborow/pyaction@0.0.28
2121
with:
2222
pypi_publish: true
2323
pypi_password: ${{ secrets.PYPI_PASSWORD }}
2424
version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }}
2525

26-
- if: ${{ github.event_name == 'pull_request' }}
26+
- if: ${{ github.event_name == 'pull_request' && secrets.TEST_PYPI_PASSWORD != '' }}
2727
name: Publish Snapshot to TestPyPi
2828
uses: dciborow/pyaction@0.0.28
2929
with:

0 commit comments

Comments
 (0)