Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
Another attempt at the get current version
  • Loading branch information
Tsunami014 authored Jan 6, 2024
1 parent 01cbd92 commit 1f6237d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
tags:
- '*'
workflow_dispatch:


jobs:
build-n-publish:
Expand All @@ -22,10 +23,12 @@ jobs:
pip install wheel
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
run: |
echo "Current tag:"
echo ${{ github.event.release.tag_name }
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ github.event.release.tag_name }/g" setup.py
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit 1f6237d

Please sign in to comment.