Skip to content

Commit

Permalink
Assure only tags are published (ansible#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Feb 11, 2021
1 parent 43e6af3 commit 7593d8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,15 @@ jobs:
- name: Publish to test.pypi.org
if: >-
github.event_name == 'push' &&
github.event.ref_type == 'tag' &&
github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.testpypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish to pypi.org
if: >-
github.event_name == 'push' &&
github.event.ref_type == 'tag' &&
github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 7593d8e

Please sign in to comment.