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 af6ba7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-push-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
uses: actions/checkout@v3
- name: Get the Git tag name
id: get-tag-name
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}"
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}" >> "$GITHUB_OUTPUT"
- 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/}" >> "$GITHUB_OUTPUT"
- 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 af6ba7d

Please sign in to comment.