Skip to content

Commit 7cb5bcb

Browse files
committed
Fix CI
1 parent c769723 commit 7cb5bcb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/go.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
steps:
1313

1414
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
1518
- name: Setup Go
19+
id: go
1620
uses: actions/setup-go@v5
1721
with:
1822
go-version: stable
1923
check-latest: true
20-
id: go
2124

2225
- name: Get dependencies
2326
run: |
@@ -30,11 +33,13 @@ jobs:
3033
run: |
3134
go test -race ./... && go vet ./...
3235
33-
- uses: goreleaser/goreleaser-action@v6
36+
- name: Build
37+
uses: goreleaser/goreleaser-action@v6
3438
with:
35-
args: build
39+
args: build --snapshot --clean
3640

37-
- uses: goreleaser/goreleaser-action@v6
41+
- name: Release
42+
uses: goreleaser/goreleaser-action@v6
3843
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
3944
with:
4045
version: latest

0 commit comments

Comments
 (0)