Skip to content

Commit 4b184de

Browse files
committed
Automatically tag release
1 parent b95f776 commit 4b184de

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,18 @@ jobs:
122122
shell: sh
123123
run: echo "::set-output name=version::$(python cmake-init.pyz --version)"
124124

125+
- uses: mathieudutour/[email protected]
126+
id: tag_version
127+
with:
128+
github_token: ${{ secrets.GITHUB_TOKEN }}
129+
custom_tag: ${{ steps.version.outputs.version }}
130+
125131
- name: Release
126132
uses: softprops/action-gh-release@v1
127133
env:
128134
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129135
with:
130136
files: cmake-init.pyz
131137
prerelease: true
132-
body: Release of version ${{ steps.version.outputs.version }}
133-
name: ${{ steps.version.outputs.version }}
138+
body: Release of version ${{ steps.tag_version.outputs.new_tag }}
139+
name: ${{ steps.tag_version.outputs.new_tag }}

0 commit comments

Comments
 (0)