Skip to content

Commit 1145d29

Browse files
committed
Use release tag as the version number
Not the checked out tag
1 parent defe9d5 commit 1145d29

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 1
26-
fetch-tags: 'true'
2726
show-progress: 'false'
2827

2928
- name: Set version statically
3029
run: |
31-
pip3 install setuptools_scm
32-
VERSION="$(python3 -m setuptools_scm)"
30+
VERSION=${{ github.event.release.tag_name }}
3331
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
3432
echo "Version: $VERSION"
3533
@@ -107,7 +105,6 @@ jobs:
107105
uses: actions/checkout@v4
108106
with:
109107
fetch-depth: 1
110-
fetch-tags: 'true'
111108
show-progress: 'false'
112109

113110
- name: Build documentation

0 commit comments

Comments
 (0)