Skip to content

Commit

Permalink
Merge pull request #20 from dennis6p/fix/update-version-in-workflow
Browse files Browse the repository at this point in the history
Update version in pyproject.toml
  • Loading branch information
dennis6p authored Oct 25, 2024
2 parents cbe49b9 + a34f4e3 commit ead31a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
- name: Update version in pyproject.toml
id: update_version
run: |
echo "Updating version in pyproject.toml"
TAG_NAME=${GITHUB_REF##*/} # Get the tag name from GITHUB_REF
# Optionally, you may want to sanitize TAG_NAME (remove 'v' prefix, etc.)
sed -i "s/version = \".*\"/version = \"${TAG_NAME}\"/" pyproject.toml
- name: Build package
run: python -m build
- name: Publish package
Expand Down

0 comments on commit ead31a5

Please sign in to comment.