From dcb97dc738eabd6e0b9f51a0abf0023bb4551cea Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Thu, 29 Sep 2022 11:33:32 +0200 Subject: [PATCH 1/2] wip --- .goreleaser.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 527f186..c3a002f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -26,6 +26,14 @@ builds: goarch: - amd64 main: ./cmd/saturn-l2 + - id: macos-arm64 + env: + - CGO_ENABLED=0 + goos: + - darwin + goarch: + - arm64 + main: ./cmd/saturn-l2 archives: - builds: - saturn @@ -43,6 +51,13 @@ archives: replacements: darwin: Darwin amd64: x86_64 + - builds: + - macos-arm64 + id: macos-arm64-zip + format: zip + name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" + replacements: + darwin: Darwin checksum: name_template: 'checksums.txt' signs: @@ -53,6 +68,26 @@ signs: args: - .gon.hcl artifacts: all + - id: macos-arm64 + ids: + - macos-arm64-zip + signature: "${artifact}" + cmd: xcrun + args: + [ + "notarytool", + "submit", + "./dist/L2-node_Darwin_arm64.zip", + "--apple-id", + oli@protocol.ai", + "--password", + "{{ .Env.AC_PASSWORD }}", + "--team-id", + "{{ .Env.AC_TEAM_ID }}", + "--progress", + "--wait", + ] + artifacts: all snapshot: name_template: "{{ incpatch .Version }}-next" changelog: From da9066874f6d9b5b6ddde0288c30c1c74ce0c5ad Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Thu, 29 Sep 2022 11:44:22 +0200 Subject: [PATCH 2/2] pass secret --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6879f20..67e9e3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,6 +79,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AC_PASSWORD: ${{ secrets.AC_PASSWORD }} + AC_TEAM_ID: ${{ secrets.AC_TEAM_ID }} # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} -