We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e98eaeb commit 8bfacb2Copy full SHA for 8bfacb2
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,31 @@
1
+name: Release Go project
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "*" # triggers only if push new tag version, like `0.8.4` or else
7
8
+jobs:
9
+ build:
10
+ name: GoReleaser build
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Check out code into the Go module directory
15
+ uses: actions/checkout@v2
16
+ with:
17
+ fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
18
19
+ - name: Set up Go 1.16
20
+ uses: actions/setup-go@v2
21
22
+ go-version: 1.16
23
+ id: go
24
25
+ - name: Run GoReleaser
26
+ uses: goreleaser/goreleaser-action@master
27
28
+ version: latest
29
+ args: release --rm-dist
30
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
0 commit comments