Skip to content

Commit

Permalink
fix(ci): test release detection
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Dec 18, 2021
1 parent 8c55e5e commit 6b35dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
# test deploy ----
- name: "Test Deploy to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith('TEST', github.event.release.name)
if: startsWith(github.event.release.name, 'TEST')
with:
user: __token__
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
Expand All @@ -131,7 +131,7 @@ jobs:
# prod deploy ----
- name: "Deploy to PyPI"
uses: pypa/gh-action-pypi-publish@master
if: "!startsWith('TEST', github.event.release.name)"
if: "!startsWith(github.event.release.name, 'TEST')"
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 6b35dff

Please sign in to comment.