Skip to content

Commit 67a26be

Browse files
committed
ci: also specify tags
1 parent cc14656 commit 67a26be

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ jobs:
3030
pnpm zip:firefox
3131
mv .output/*-firefox.zip .output/tailname-firefox.zip
3232
33+
- name: Create and push tag
34+
id: create_and_push_tag
35+
run: |
36+
TAG=auto-release-$(git rev-parse --short HEAD)
37+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
38+
git config --global user.name "github-actions[bot]"
39+
git tag $TAG
40+
git push origin $TAG
41+
3342
- name: Create GitHub Release and upload ZIPs
3443
uses: ncipollo/release-action@v1
3544
with:
3645
artifacts: ".output/tailname-chrome.zip,.output/tailname-firefox.zip"
3746
generateReleaseNotes: true
47+
tag: ${{ steps.create_and_push_tag.outputs.TAG }}

0 commit comments

Comments
 (0)