File tree 2 files changed +50
-2
lines changed
2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,27 @@ name: goreleaser
2
2
3
3
on :
4
4
pull_request :
5
+ branches :
6
+ - master
5
7
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
6
19
7
20
jobs :
8
21
goreleaser :
9
22
runs-on : ubuntu-latest
23
+ permissions :
24
+ contents : write
25
+ id-token : write
10
26
steps :
11
27
- name : Checkout
12
28
uses : actions/checkout@v4
21
37
- name : Test
22
38
run : go test ./...
23
39
40
+ - name : Install Cosign
41
+ uses : sigstore/cosign-installer@v3
42
+ if : github.ref_type == 'tag'
43
+
24
44
- name : Run GoReleaser
25
45
uses : goreleaser/goreleaser-action@v6
26
46
with :
Original file line number Diff line number Diff line change @@ -10,14 +10,41 @@ builds:
10
10
- freebsd
11
11
- windows
12
12
goarch :
13
+ - 386
13
14
- amd64
14
15
- arm
15
16
- arm64
16
- ignore :
17
+ - ppc64le
18
+ - s390x
19
+ goarm :
20
+ - 6
21
+ - 7
22
+
23
+ archives :
24
+ - format_overrides :
17
25
- goos : windows
18
- goarch : arm64
26
+ formats : ['zip']
27
+
28
+ sboms :
29
+ - artifacts : archive
30
+ documents :
31
+ - " ${artifact}.spdx.json"
32
+
19
33
release :
20
34
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
+
21
48
brews :
22
49
- repository :
23
50
owner : rs
27
54
28
55
homepage : https://github.com/rs/curlie
29
56
description : The power of curl, the ease of use of httpie.
57
+
30
58
nfpms :
31
59
-
maintainer :
Olivier Poitrey <[email protected] >
32
60
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