File tree 2 files changed +45
-18
lines changed
2 files changed +45
-18
lines changed Original file line number Diff line number Diff line change 1
- name : release
1
+ name : Release
2
2
3
3
on :
4
4
push :
5
5
tags :
6
- - ' v[0-9]+.[0-9]+.[0-9]+'
7
- workflow_dispatch :
6
+ - ' v*'
8
7
9
8
permissions :
10
9
contents : write
@@ -20,14 +19,15 @@ jobs:
20
19
- uses : actions/setup-go@v5
21
20
with :
22
21
go-version : 1.22
22
+ cache : true
23
23
-
uses :
ko-build/[email protected]
24
24
-
uses :
sigstore/[email protected]
25
25
with :
26
26
cosign-release : v2.2.3
27
27
- uses : goreleaser/goreleaser-action@v5
28
28
with :
29
29
version : v1.24.0
30
- args : release --clean --timeout 90m
30
+ args : release --clean
31
31
env :
32
32
GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
33
33
COSIGN_PASSWORD : ' ${{ secrets.COSIGN_PASSWORD }}'
Original file line number Diff line number Diff line change @@ -12,6 +12,24 @@ builds:
12
12
- windows
13
13
- darwin
14
14
15
+ checksum :
16
+ name_template : ' checksums.txt'
17
+
18
+ signs :
19
+ - id : checksums
20
+ cmd : cosign
21
+ stdin : ' {{ .Env.COSIGN_PASSWORD }}'
22
+ output : true
23
+ artifacts : checksum
24
+ args :
25
+ - sign-blob
26
+ - --yes
27
+ - --key
28
+ - env://COSIGN_PRIVATE_KEY
29
+ - ' --output-certificate=${certificate}'
30
+ - ' --output-signature=${signature}'
31
+ - ' ${artifact}'
32
+
15
33
archives :
16
34
- format : tar.gz
17
35
name_template : >-
@@ -21,25 +39,34 @@ archives:
21
39
{{- else if eq .Arch "386" }}i386
22
40
{{- else }}{{ .Arch }}{{ end }}
23
41
{{- if .Arm }}v{{ .Arm }}{{ end }}
24
- checksum :
25
- name_template : ' checksums.txt'
42
+
43
+ kos :
44
+ - repository : ghcr.io/a-h/templ
45
+ platforms :
46
+ - linux/amd64
47
+ - linux/arm64
48
+ tags :
49
+ - latest
50
+ - ' {{.Tag}}'
51
+ bare : true
52
+
53
+ docker_signs :
54
+ - cmd : cosign
55
+ artifacts : all
56
+ output : true
57
+ args :
58
+ - sign
59
+ - --yes
60
+ - --key
61
+ - env://COSIGN_PRIVATE_KEY
62
+ - ' ${artifact}'
63
+
26
64
snapshot :
27
65
name_template : " {{ incpatch .Version }}-next"
66
+
28
67
changelog :
29
68
sort : asc
30
69
filters :
31
70
exclude :
32
71
- ' ^docs:'
33
72
- ' ^test:'
34
-
35
- kos :
36
- - repository : ghcr.io/a-h/templ
37
- tags :
38
- - ' v{{.Version}}'
39
- - latest
40
- bare : true
41
- preserve_import_paths : false
42
- sbom : none
43
- platforms :
44
- - linux/amd64
45
- - linux/arm64
You can’t perform that action at this time.
0 commit comments