Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dciborow authored Apr 27, 2022
1 parent d7a7392 commit 03e4901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- if: ${{ github.event_name == 'release' }}
- if: ${{ github.event_name == 'release' && secrets.PYPI_PASSWORD != '' }}
name: Publish Release to PyPi
uses: dciborow/[email protected]
with:
pypi_publish: true
pypi_password: ${{ secrets.PYPI_PASSWORD }}

- if: ${{ github.event_name == 'push' }}
- if: ${{ github.event_name == 'push' && secrets.PYPI_PASSWORD != '' }}
name: Publish RC to PyPi
uses: dciborow/[email protected]
with:
pypi_publish: true
pypi_password: ${{ secrets.PYPI_PASSWORD }}
version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }}

- if: ${{ github.event_name == 'pull_request' }}
- if: ${{ github.event_name == 'pull_request' && secrets.TEST_PYPI_PASSWORD != '' }}
name: Publish Snapshot to TestPyPi
uses: dciborow/[email protected]
with:
Expand Down

0 comments on commit 03e4901

Please sign in to comment.