Skip to content

Commit 5f4537d

Browse files
committed
fix: macos bin siging
1 parent b29bf95 commit 5f4537d

2 files changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
env:
12-
QUILL_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
13-
QUILL_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
14-
QUILL_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
15-
QUILL_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
16-
QUILL_NOTARY_ISSUER: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
12+
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
13+
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
14+
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
15+
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
16+
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
1717
steps:
1818
- uses: actions/checkout@v6
1919

@@ -22,10 +22,6 @@ jobs:
2222
with:
2323
go-version-file: "./go.mod"
2424

25-
- name: Install quill
26-
run: |
27-
curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b /usr/local/bin
28-
2925
- name: GoReleaser
3026
uses: goreleaser/goreleaser-action@v6
3127
with:

.goreleaser.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@ nfpms:
3838
- deb
3939
- rpm
4040

41-
signs:
42-
- cmd: quill
43-
args:
44-
- sign-and-notarize
45-
- "${artifact}"
46-
- --dry-run={{ .IsSnapshot }}
47-
- --ad-hoc={{ .IsSnapshot }}
48-
- -vv
49-
artifacts: binary
50-
output: true
41+
notarize:
42+
macos:
43+
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
44+
sign:
45+
certificate: "{{.Env.MACOS_SIGN_P12}}"
46+
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
47+
notarize:
48+
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
49+
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
50+
key: "{{.Env.MACOS_NOTARY_KEY}}"
51+
wait: true
52+
timeout: 20m
5153

5254
changelog:
5355
sort: asc

0 commit comments

Comments
 (0)