Skip to content

Commit

Permalink
* Github workflow: skip publishing to test PyPI if we're performing
Browse files Browse the repository at this point in the history
  release, there might be the version of the package already from the
  merge to master branch
  • Loading branch information
hostcc committed Feb 6, 2022
1 parent 534e388 commit 0728ae8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ jobs:
- name: Build the package
run: python -m build
- name: Publish the package to Test PyPi
# Skip publishing to test PyPI if we're performing release, there might
# be already the version of the package from the merge to master branch
if: github.event_name != 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_TOKEN }}
Expand Down

0 comments on commit 0728ae8

Please sign in to comment.