Skip to content

Commit 2464edc

Browse files
committed
ci(build-and-release.yaml): updates release workflow
1 parent a840918 commit 2464edc

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
1517

16-
- name: Install goreleaser
17-
run: sudo snap install --classic goreleaser
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: stable
1822

19-
- name: Validate release config
20-
run: goreleaser check
21-
22-
- name: Release artfifacts
23+
- name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v6
25+
with:
26+
distribution: goreleaser
27+
version: "~> v2"
28+
args: release --clean
2329
env:
2430
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
run: goreleaser release

0 commit comments

Comments
 (0)