Skip to content

Commit

Permalink
Merge pull request #83 from neo4j/mac-notarization
Browse files Browse the repository at this point in the history
Configuration for notarazing Mac builds
  • Loading branch information
darrellwarde authored Oct 31, 2024
2 parents 0fc70ca + 0597dc0 commit 7664aa4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ jobs:
args: --clean --release-notes=${{ env.RELEASE_NOTES_PATH }} --skip=validate --verbose
env:
GITHUB_TOKEN: ${{ secrets.TEAM_GRAPHQL_PERSONAL_ACCESS_TOKEN }}
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
39 changes: 38 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@

version: 2

project_name: neo4j-cli

before:
hooks:
- go mod tidy

builds:
- main: ./neo4j-cli
id: "neo4j-cli"
id: neo4j-cli
binary: neo4j-cli
env:
- CGO_ENABLED=0
Expand Down Expand Up @@ -42,3 +44,38 @@ archives:

changelog:
disable: false

notarize:
macos:
- # Whether this configuration is enabled or not.
#
# Default: false.
# Templates: allowed.
enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'

# IDs to use to filter the built binaries.
#
# Default: the project name.
ids:
- neo4j-cli

sign:
# The .p12 certificate file path or its base64'd contents.
certificate: "{{.Env.MACOS_SIGN_P12}}"

# The password to be used to open the certificate.
password: "{{.Env.MACOS_SIGN_PASSWORD}}"

# Then, we notarize the binaries.
notarize:
# The issuer ID.
# Its the UUID you see when creating the App Store Connect key.
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"

# Key ID.
# You can see it in the list of App Store Connect Keys.
# It will also be in the ApiKey filename.
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"

# The .p8 key file path or its base64'd contents.
key: "{{.Env.MACOS_NOTARY_KEY}}"

0 comments on commit 7664aa4

Please sign in to comment.