Skip to content

Commit

Permalink
fix for release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Nov 15, 2024
1 parent 0dd2fb9 commit 268180c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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

Expand Down

0 comments on commit 268180c

Please sign in to comment.