Skip to content

Commit

Permalink
make release tags consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
richardblythman committed Dec 20, 2024
1 parent 8d08856 commit 2c20d65
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ jobs:
with:
python-version: "3.x"

# Add these steps before building
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Update version in pyproject.toml
run: |
sed -i "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml
# If you use setup.py instead, use this:
# sed -i "s/version=['\"].*['\"]/version='$VERSION'/" setup.py
- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
Expand Down

0 comments on commit 2c20d65

Please sign in to comment.