-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update code signing to notarize package and zipped CLI binary
Optionally uses `altool` in the signed release pipeline to notarize artifacts and adds a release job to the CI which generates signed artifacts on master and release pushes.
- Loading branch information
1 parent
cf77e50
commit 8474e4c
Showing
4 changed files
with
147 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'release-*' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Build Signed Artifacts | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Import Secrets | ||
uses: apple-actions/import-codesign-certs@v1 | ||
with: | ||
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} | ||
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | ||
- name: Print Debug Info | ||
run: make print-debug-info | ||
- name: Set Up Project | ||
run: make setup-project | ||
- name: Clean | ||
run: make clean | ||
- name: Build | ||
env: | ||
AC_USERNAME: ${{ secrets.AC_USERNAME }} | ||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }} | ||
run: make signed-release | ||
- name: Document SHAs | ||
run: | | ||
shasum -a 512 Mockingbird.zip | ||
shasum -a 512 Mockingbird.pkg | ||
shasum -a 512 MockingbirdSupport.zip | ||
shasum -a 512 Codesigning/MockingbirdCli.dr | ||
- name: Upload Zip | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Mockingbird.zip | ||
path: Mockingbird.zip | ||
- name: Upload Pkg | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Mockingbird.pkg | ||
path: Mockingbird.pkg | ||
- name: Upload Starter Pack | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: MockingbirdSupport.zip | ||
path: MockingbirdSupport.zip | ||
- name: Upload CLI Designated Requirement | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: MockingbirdCli.dr | ||
path: Codesigning/MockingbirdCli.dr | ||
|
||
build-cisafe: | ||
name: Build CI-Safe Signed Artifacts | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Import Secrets | ||
uses: apple-actions/import-codesign-certs@v1 | ||
with: | ||
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} | ||
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | ||
- name: Print Debug Info | ||
run: make print-debug-info | ||
- name: Set Up Project | ||
run: make setup-project | ||
- name: Clean | ||
run: make clean | ||
- name: Build | ||
env: | ||
AC_USERNAME: ${{ secrets.AC_USERNAME }} | ||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }} | ||
USE_RELATIVE_RPATH: 1 | ||
run: make signed-release | ||
- name: Document SHAs | ||
run: | | ||
shasum -a 512 Mockingbird.zip | ||
shasum -a 512 Mockingbird.pkg | ||
shasum -a 512 MockingbirdSupport.zip | ||
shasum -a 512 Codesigning/MockingbirdCli.dr | ||
- name: Upload Zip | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Mockingbird-cisafe.zip | ||
path: Mockingbird.zip | ||
- name: Upload Pkg | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Mockingbird-cisafe.pkg | ||
path: Mockingbird.pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
identifier mockingbird and anchor apple generic and certificate leaf[subject.CN] = "3rd Party Mac Developer Application: Bird Rides, Inc. (P2T4T6R4SL)" and certificate 1[field.1.2.840.113635.100.6.2.1] /* exists */ | ||
identifier mockingbird and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = P2T4T6R4SL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters