Skip to content

Commit 60fffb3

Browse files
committed
Fix release version tagging as well for PyPI
Signed-off-by: Tobias Wolf <[email protected]>
1 parent ffa80bf commit 60fffb3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/on-push-pre-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id: get-tag-name
1616
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}"
1717
- name: Create Release
18-
uses: actions/create-release@v2
18+
uses: actions/create-release@v1
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121
with:

.github/workflows/on-release-publish.yml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
steps:
5757
- name: Checkout commit
5858
uses: actions/checkout@v3
59+
- name: Get the Git tag name
60+
id: get-tag-name
61+
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}"
5962
- name: Set up Python
6063
id: setup-python
6164
uses: actions/setup-python@v3
@@ -64,6 +67,8 @@ jobs:
6467
pip install -r ./requirements.txt
6568
pip install build
6669
- name: Execute build
70+
env:
71+
ROOKIFY_VERSION: ${{ steps.get-tag-name.outputs.tag-name }}
6772
run: |-
6873
python -m build .
6974
- name: Publish package

0 commit comments

Comments
 (0)