Skip to content

Commit

Permalink
automate writing version tag to pyproject.toml using workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-thompson committed Jan 21, 2024
1 parent 02f5020 commit 616db75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
id: tag
run: echo "TAG_NAME={$(echo $GITHUB_REF | cut -d / -f 3)}" >> $GITHUB_OUTPUT
- name: Update version in pyproject.toml
env:
TAG_NAME: ${{ steps.tag.outputs.TAG_NAME }}
run: >-
sed -i 's/{{VERSION_PLACEHOLDER}}/$TAG_NAME/g' pyproject.toml
- name: Build a binary wheel
Expand Down

0 comments on commit 616db75

Please sign in to comment.