From 2a44ea1057401ac758d499f3a1d0a7440973a5ca Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Thu, 18 Jan 2024 13:15:55 +0100 Subject: [PATCH] CI: Print match and release to test in all release cases --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 525d2a8..acfc6eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/