Commit 2fc6d74 1 parent 867fa7e commit 2fc6d74 Copy full SHA for 2fc6d74
File tree 3 files changed +38
-3
lines changed
3 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,26 @@ jobs:
17
17
uses : actions/checkout@v2
18
18
with :
19
19
fetch-depth : 0
20
+
20
21
- name : Set up Go
21
22
uses : actions/setup-go@v2
22
23
with :
23
24
go-version : 1.23.3
25
+
24
26
- name : Set up Docker Buildx
25
27
uses : docker/setup-buildx-action@v2
28
+
26
29
- name : Log in to registry
27
30
run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
28
- - uses : cachix/install-nix-action@v22
31
+
32
+ - name : Import GPG key
33
+ id : import_gpg
34
+ uses : crazy-max/ghaction-import-gpg@v6
29
35
with :
30
- nix_path : nixpkgs=channel:nixos-unstable
36
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
37
+ passphrase : ${{ secrets.PASSPHRASE }}
38
+ trust_level : 5
39
+
31
40
- name : Run GoReleaser
32
41
uses : goreleaser/goreleaser-action@v2
33
42
with :
38
47
GITHUB_TOKEN : ${{ secrets.PAT }}
39
48
FURY_TOKEN : ${{ secrets.FURY_TOKEN }}
40
49
BLUESKY_APP_PASSWORD : ${{ secrets.BLUESKY_APP_PASSWORD }}
50
+ GPG_KEYID : ${{ steps.import_gpg.outputs.keyid }}
Original file line number Diff line number Diff line change @@ -78,12 +78,33 @@ checksum:
78
78
name_template : " checksums.txt"
79
79
80
80
binary_signs :
81
- - {}
81
+ - cmd : gpg2
82
+ args :
83
+ [
84
+ " -u" ,
85
+ " {{ .Env.GPG_KEYID }}" ,
86
+ " --output" ,
87
+ " ${signature}" ,
88
+ " --detach-sign" ,
89
+ " ${artifact}" ,
90
+ ]
82
91
83
92
signs :
84
93
- artifacts : checksum
94
+ cmd : gpg2
95
+ args :
96
+ [
97
+ " --batch" ,
98
+ " -u" ,
99
+ " {{ .Env.GPG_KEYID }}" ,
100
+ " --output" ,
101
+ " ${signature}" ,
102
+ " --detach-sign" ,
103
+ " ${artifact}" ,
104
+ ]
85
105
86
106
announce :
87
107
bluesky :
88
108
enabled : true
89
109
username : " me.felixwie.com"
110
+ message_template : " 📜 {{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"
Original file line number Diff line number Diff line change 15
15
run :
16
16
desc : Run application
17
17
cmd : go run main.go {{ .CLI_ARGS }}
18
+
19
+ release :
20
+ desc : Run GoReleaser
21
+ cmd : goreleaser release --snapshot --clean
You can’t perform that action at this time.
0 commit comments