Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit 848152e

Browse files
authored
chore: ci: add test goreleaser step in build stage (#20)
1 parent ac58589 commit 848152e

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Checkout
3636
uses: actions/checkout@v2
37-
37+
3838
- name: Install Go
3939
uses: actions/setup-go@v2
4040
with:
@@ -50,3 +50,10 @@ jobs:
5050
run: ./scripts/test_go.sh
5151
env:
5252
COVERALLS_TOKEN: ${{ github.token }}
53+
54+
- name: Test Release
55+
uses: goreleaser/goreleaser-action@v2
56+
with:
57+
distribution: goreleaser
58+
version: latest
59+
args: release --rm-dist --snapshot --skip-publish

.github/workflows/release.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,19 @@ jobs:
2121
goreleaser:
2222
runs-on: ubuntu-latest
2323
steps:
24-
-
25-
name: Checkout
24+
- name: Checkout
2625
uses: actions/checkout@v2
2726
with:
2827
fetch-depth: 0
29-
-
30-
name: Set up Go
28+
- name: Set up Go
3129
uses: actions/setup-go@v2
3230
with:
3331
go-version: 1.17
34-
-
35-
name: Run GoReleaser
32+
- name: Run GoReleaser
3633
uses: goreleaser/goreleaser-action@v2
3734
with:
38-
# either 'goreleaser' (default) or 'goreleaser-pro'
3935
distribution: goreleaser
4036
version: latest
4137
args: release --rm-dist
4238
env:
4339
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
45-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 commit comments

Comments
 (0)