From f84a307a4a43f48ae73930c38bbca16c53da3af5 Mon Sep 17 00:00:00 2001 From: Nicolas Tessore Date: Fri, 15 Nov 2024 21:00:13 +0000 Subject: [PATCH] gh-430: fix for release action (#429) --- .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