Skip to content

Commit 00fb85b

Browse files
authored
Update criteria for PyPi publishing in release workflow (#303)
1 parent 5342d2c commit 00fb85b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292
with:
9393
repository-url: https://test.pypi.org/legacy/
9494
skip-existing: true
95-
attestations: ${{ !startsWith(github.ref, 'refs/tags/') }}
95+
attestations: ${{ env.DRY_RUN }}
9696
- name: Publish distribution 📦 to PyPI
97-
if: startsWith(github.ref, 'refs/tags/')
97+
if: startsWith(env.DRY_RUN, 'false')
9898
uses: pypa/gh-action-pypi-publish@release/v1
9999

100100
post-publish:

0 commit comments

Comments
 (0)