Skip to content

Commit c5fb46b

Browse files
committed
Automatic tag added in release
1 parent 5b0f243 commit c5fb46b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ jobs:
9999
with:
100100
inputs: ./dist/*.tar.gz ./dist/*.whl
101101

102+
- name: Bump version and push tag
103+
id: create_tag
104+
uses: mathieudutour/[email protected]
105+
with:
106+
github_token: ${{ secrets.GITHUB_TOKEN }}
107+
release_branches: main
108+
default_bump: false
109+
custom_tag: ${{ needs.prepare-and-check.outputs.version }}
110+
102111
- name: Set Release Version Env
103112
run: echo "RELEASE_VERSION=${{ needs.prepare-and-check.outputs.version }}" >> $GITHUB_ENV
104113

@@ -113,8 +122,8 @@ jobs:
113122
env:
114123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115124
with:
116-
tag_name: v${{ needs.prepare-and-check.outputs.version }}
117-
release_name: Release v${{ needs.prepare-and-check.outputs.version }}
125+
tag_name: ${{ steps.create_tag.outputs.new_tag }}
126+
release_name: Release ${{ steps.create_tag.outputs.new_tag }}
118127
body: ${{ steps.draft_release.outputs.body }}
119128
draft: false
120129
prerelease: false

0 commit comments

Comments
 (0)