Skip to content

Commit

Permalink
Use release tag as the version number
Browse files Browse the repository at this point in the history
Not the checked out tag
  • Loading branch information
dflook committed Oct 3, 2024
1 parent defe9d5 commit 1145d29
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: 'true'
show-progress: 'false'

- name: Set version statically
run: |
pip3 install setuptools_scm
VERSION="$(python3 -m setuptools_scm)"
VERSION=${{ github.event.release.tag_name }}
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
echo "Version: $VERSION"
Expand Down Expand Up @@ -107,7 +105,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: 'true'
show-progress: 'false'

- name: Build documentation
Expand Down

0 comments on commit 1145d29

Please sign in to comment.