Skip to content

Commit

Permalink
CI: Fix incorrect condition for upload to test PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Jan 18, 2024
1 parent 478a068 commit 087fbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
MATCH: ${{ steps.check-tag.outputs.match }}
run: echo "Match is $MATCH"
- name: Publish distribution to Test PyPI
if: github.ref == 'refs/heads/main' && (steps.check-tag.outputs.match == 'prerelease' || steps.check-tag.outputs.match == 'release')
if: startsWith(github.ref, 'refs/tags/v') && (steps.check-tag.outputs.match == 'prerelease' || steps.check-tag.outputs.match == 'release')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down

0 comments on commit 087fbf1

Please sign in to comment.