Skip to content

Commit b29bf95

Browse files
committed
fix: sign macos bins
1 parent 6fb021b commit b29bf95

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
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 }}
1117
steps:
1218
- uses: actions/checkout@v6
1319

@@ -16,6 +22,10 @@ jobs:
1622
with:
1723
go-version-file: "./go.mod"
1824

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+
1929
- name: GoReleaser
2030
uses: goreleaser/goreleaser-action@v6
2131
with:

.goreleaser.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ 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
51+
4152
changelog:
4253
sort: asc
4354

0 commit comments

Comments
 (0)