diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index de6fd72..25a41b6 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -80,9 +80,9 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ skip-existing: true - attestations: ${{ !startsWith(github.ref, 'refs/tags/') }} + attestations: ${{ env.DRY_RUN }} - name: Publish distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(env.DRY_RUN, 'false') uses: pypa/gh-action-pypi-publish@release/v1 post-publish: