Skip to content

Commit 5e2c733

Browse files
authored
Update go.yml
1 parent 1ad00b7 commit 5e2c733

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/go.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,26 @@ jobs:
2424
- name: Test
2525
run: go test -v ./...
2626

27-
- name: GoReleaser Action
28-
uses: goreleaser/goreleaser-action@v2.7.0
27+
goreleaser:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
- name: Set up Go
35+
uses: actions/setup-go@v2
36+
with:
37+
go-version: 1.16
38+
39+
- name: Run GoReleaser
40+
uses: goreleaser/goreleaser-action@v2
41+
with:
42+
# either 'goreleaser' (default) or 'goreleaser-pro'
43+
distribution: goreleaser
44+
version: latest
45+
args: release --rm-dist
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
49+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 commit comments

Comments
 (0)