Skip to content

Commit af3926f

Browse files
nex3ntkme
andauthored
Automatically tag releases (#11)
Co-authored-by: なつき <i@ntk.me>
1 parent 4563b45 commit af3926f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
env:
8+
VERSION: v1
9+
10+
jobs:
11+
tag:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- run: git tag -d $VERSION
18+
- run: git tag $VERSION
19+
- run: git push origin :$VERSION
20+
- run: git push --tag

0 commit comments

Comments
 (0)