Skip to content

Commit

Permalink
Assure we publish tags (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Feb 8, 2021
1 parent 9a4946e commit 2bc403e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ jobs:
- name: Publish to test.pypi.org
if: >-
github.event_name == 'push' &&
github.ref == format(
'refs/heads/{0}', github.event.repository.default_branch
)
github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.testpypi_password }}
Expand All @@ -247,9 +245,7 @@ jobs:
if: >-
github.event_name == 'push' &&
github.event.ref_type == 'tag' &&
github.ref == format(
'refs/heads/{0}', github.event.repository.default_branch
)
github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 2bc403e

Please sign in to comment.