Skip to content

Commit 1eba88a

Browse files
authored
Replace release workflow with goreleaser from main (#510)
1 parent 04bd5e8 commit 1eba88a

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
name: Release
1+
name: goreleaser
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
6-
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
- '**'
78

89
jobs:
910
goreleaser:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
- name: Checkout
14+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
1415
with:
15-
submodules: recursive
16+
fetch-depth: 0
1617

17-
- name: Setup Go
18-
uses: actions/setup-go@v4
18+
- name: Set up Go
19+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
20+
with:
21+
go-version-file: "go.mod"
22+
check-latest: true
1923

2024
- name: Get build date
2125
id: date
@@ -38,7 +42,7 @@ jobs:
3842
run: echo "::set-output name=go::$(go version | cut -d ' ' -f 3)"
3943

4044
- name: Run GoReleaser
41-
uses: goreleaser/goreleaser-action@v5
45+
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
4246
with:
4347
version: latest
4448
args: release

0 commit comments

Comments
 (0)