Skip to content

Commit a455c1b

Browse files
committed
add workflow for release
Signed-off-by: Jiacheng Xu <xjcmaxwellcjx@gmail.com>
1 parent 9547bc9 commit a455c1b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: release
22
on:
3-
create:
3+
push:
44
tags:
55
- 'v*'
66

@@ -17,11 +17,14 @@ jobs:
1717
fetch-depth: 0
1818
- name: Set up Go
1919
uses: actions/setup-go@v3
20+
with:
21+
go-version: '1.19'
22+
- run: echo "GOVERSION=$(go version)" >> $GITHUB_ENV
2023
- name: Run GoReleaser
2124
uses: goreleaser/goreleaser-action@v4
2225
with:
2326
distribution: goreleaser
2427
version: latest
2528
args: release --clean
2629
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.G_TOKEN }}

0 commit comments

Comments
 (0)