Skip to content

Commit

Permalink
CI: Print match and release to test in all release cases
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Jan 18, 2024
1 parent c96e9da commit 2a44ea1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ jobs:
else
echo "match=dirty" >> $GITHUB_OUTPUT
fi
- name: Print detected match
env:
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'
if: github.ref == 'refs/heads/main' && (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 2a44ea1

Please sign in to comment.