Skip to content

Commit 4aa2117

Browse files
authored
Add release workflow (#470)
1 parent 0a9e11e commit 4aa2117

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Update Tag
3+
4+
on:
5+
release:
6+
types:
7+
- published
8+
9+
env:
10+
TAG_NAME: latest
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout source
19+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Update latest tag
24+
run: |-
25+
git config user.name github-actions
26+
git config user.email github-actions@github.com
27+
git tag --force ${{ env.TAG_NAME }} ${{ github.sha }}
28+
git push origin ${{ env.TAG_NAME }} --force

0 commit comments

Comments
 (0)