Skip to content

Commit 5516362

Browse files
authored
Create git tag during auto release (#6)
1 parent 7e3812b commit 5516362

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/autorelease.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,22 @@ jobs:
3636
3737
- name: echo version and changelog
3838
run: |
39-
echo "${{ steps.version.outputs.version}}"
39+
echo "${{ steps.version.outputs.version }}"
4040
echo "${{ steps.changelog.outputs.changelog }}"
4141
42+
- name: push tag
43+
id: tag_version
44+
uses: mathieudutour/[email protected]
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
custom_tag: ${{ steps.version.outputs.version }}
48+
4249
- name: Create Release
4350
uses: ncipollo/[email protected]
4451
with:
4552
name: ${{ steps.version.outputs.version }}
4653
tag: v${{ steps.version.outputs.version }}
47-
body: ${{ steps.changelog.outputs.changelog}}
54+
body: ${{ steps.changelog.outputs.changelog }}
4855
draft: false
4956
prerelease: false
5057
# An optional tag for the release. If this is omitted the git ref will be used (if it is a tag).
@@ -87,7 +94,7 @@ jobs:
8794
with:
8895
images: ${{ env.IMAGE_NAME }},ghcr.io/${{ env.IMAGE_NAME }}
8996
tags: |
90-
type=semver,pattern={{version}},value=${{needs.github-release.outputs.version}}
97+
type=semver,pattern={{version}},value=${{needs.github-release.outputs.version }}
9198
9299
- name: Build and push Docker image
93100
uses: docker/[email protected]

0 commit comments

Comments
 (0)