Skip to content

Commit

Permalink
Fix release version tagging as well for PyPI
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Nov 13, 2024
1 parent ffa80bf commit 60fffb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/on-push-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
id: get-tag-name
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}"
- name: Create Release
uses: actions/create-release@v2
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/on-release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: Get the Git tag name
id: get-tag-name
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}"
- name: Set up Python
id: setup-python
uses: actions/setup-python@v3
Expand All @@ -64,6 +67,8 @@ jobs:
pip install -r ./requirements.txt
pip install build
- name: Execute build
env:
ROOKIFY_VERSION: ${{ steps.get-tag-name.outputs.tag-name }}
run: |-
python -m build .
- name: Publish package
Expand Down

0 comments on commit 60fffb3

Please sign in to comment.