Skip to content

Commit 754ae3c

Browse files
authored
Add more platforms, SBOMs and sign artifacts (#88)
1 parent 09f1b6e commit 754ae3c

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.github/workflows/release.yml

+20
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,27 @@ name: goreleaser
22

33
on:
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

720
jobs:
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
@@ -21,6 +37,10 @@ jobs:
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:

.goreleaser.yml

+30-2
Original file line numberDiff line numberDiff 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+
1933
release:
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+
2148
brews:
2249
- repository:
2350
owner: rs
@@ -27,6 +54,7 @@ brews:
2754
2855
homepage: https://github.com/rs/curlie
2956
description: The power of curl, the ease of use of httpie.
57+
3058
nfpms:
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.

0 commit comments

Comments
 (0)