Skip to content

Commit 97fdab8

Browse files
authored
update pypi autocommit to extract version number from release tag
Former-commit-id: 0f8b6bc
1 parent daa3daa commit 97fdab8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: .github/workflows/python-publish.yml

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: '3.x'
29+
- name: Extract tag name
30+
id: tag
31+
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
32+
- name: Update version in setup.py
33+
run: >-
34+
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
2935
- name: Install dependencies
3036
run: |
3137
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)