From 268180cfb8cf21475de448fa1094066611f68bfb Mon Sep 17 00:00:00 2001 From: Nicolas Tessore Date: Fri, 15 Nov 2024 19:38:05 +0000 Subject: [PATCH] fix for release action --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f638a51..e9fe6ea3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Replace stable version with the release version + if: github.event_name == 'release' && github.event.action == 'published' run: |- # store the release tag tag="${{ github.ref_name }}" @@ -36,6 +37,9 @@ jobs: --expression "$url_pattern" \ ${{ github.workspace }}/README.md + # store the tag since the git checkout is now dirty + echo "SETUPTOOLS_SCM_PRETEND_VERSION=${tag}" >> $GITHUB_ENV + - name: Build SDist and wheel run: pipx run build