Skip to content

Commit

Permalink
Merge pull request #298 from miurahr/patch-workflow-conditions-release
Browse files Browse the repository at this point in the history
GHA: fix release condition
  • Loading branch information
miurahr authored Jul 6, 2021
2 parents 47f312e + 852a20f commit a969c24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
- name: twine check
run: python -m twine check dist/*
- name: Publish distribution 📦 to Test PyPI
if: ${{ !startsWith(github.event.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.testpypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags')
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit a969c24

Please sign in to comment.