File tree Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,27 @@ name: goreleaser
22
33on :
44 pull_request :
5+ branches :
6+ - master
57 push :
8+ branches :
9+ - master
10+ tags :
11+ - " *"
12+
13+ concurrency :
14+ group : ${{ github.ref_name }}-goreleaser
15+ cancel-in-progress : true
16+
17+ permissions :
18+ contents : read
619
720jobs :
821 goreleaser :
922 runs-on : ubuntu-latest
23+ permissions :
24+ contents : write
25+ id-token : write
1026 steps :
1127 - name : Checkout
1228 uses : actions/checkout@v4
2137 - name : Test
2238 run : go test ./...
2339
40+ - name : Install Cosign
41+ uses : sigstore/cosign-installer@v3
42+ if : github.ref_type == 'tag'
43+
2444 - name : Run GoReleaser
2545 uses : goreleaser/goreleaser-action@v6
2646 with :
Original file line number Diff line number Diff line change @@ -10,14 +10,41 @@ builds:
1010 - freebsd
1111 - windows
1212 goarch :
13+ - 386
1314 - amd64
1415 - arm
1516 - arm64
16- ignore :
17+ - ppc64le
18+ - s390x
19+ goarm :
20+ - 6
21+ - 7
22+
23+ archives :
24+ - format_overrides :
1725 - goos : windows
18- goarch : arm64
26+ formats : ['zip']
27+
28+ sboms :
29+ - artifacts : archive
30+ documents :
31+ - " ${artifact}.spdx.json"
32+
1933release :
2034 name_template : " {{.ProjectName}}-v{{.Version}}"
35+
36+ signs :
37+ - cmd : cosign
38+ artifacts : checksum
39+ output : true
40+ certificate : " ${artifact}.pem"
41+ args :
42+ - sign-blob
43+ - " --output-signature=${signature}"
44+ - " --output-certificate=${certificate}"
45+ - " ${artifact}"
46+ - " --yes"
47+
2148brews :
2249 - repository :
2350 owner : rs
27542855 homepage : https://github.com/rs/curlie
2956 description : The power of curl, the ease of use of httpie.
57+
3058nfpms :
3159 -
maintainer :
Olivier Poitrey <[email protected] > 3260 description : curle is a frontend to curl that offers the ease of use of httpie without having to compromise curl features and performance.
You can’t perform that action at this time.
0 commit comments