Skip to content

Commit

Permalink
Hopefully the pypi publishing workflow will fill in the correct versi…
Browse files Browse the repository at this point in the history
…on from the tag

Signed-off-by: David Turner <turne540@msu.edu>
  • Loading branch information
DavidT3 committed Apr 25, 2024
1 parent a86c1d3 commit c361811
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
build
--user
# This SHOULD set the correct version in setup.py, taken from the tag
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Build a binary wheel and source tarball
run: >-
python -m
Expand Down

0 comments on commit c361811

Please sign in to comment.