We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd2fb9 commit f84a307Copy full SHA for f84a307
.github/workflows/release.yml
@@ -22,6 +22,7 @@ jobs:
22
uses: actions/checkout@v4
23
24
- name: Replace stable version with the release version
25
+ if: github.event_name == 'release' && github.event.action == 'published'
26
run: |-
27
# store the release tag
28
tag="${{ github.ref_name }}"
@@ -36,6 +37,9 @@ jobs:
36
37
--expression "$url_pattern" \
38
${{ github.workspace }}/README.md
39
40
+ # store the tag since the git checkout is now dirty
41
+ echo "SETUPTOOLS_SCM_PRETEND_VERSION=${tag}" >> $GITHUB_ENV
42
+
43
- name: Build SDist and wheel
44
run: pipx run build
45
0 commit comments