-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor apple and team id to be provided by GitHub actions environme…
…nt variables Signed-off-by: Dom Del Nano <[email protected]>
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 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 |
---|---|---|
|
@@ -90,7 +90,9 @@ jobs: | |
- name: Sign CLI release | ||
env: | ||
REF: ${{ github.event.ref }} | ||
APPLE_ID: "[email protected]" | ||
AC_PASSWD: ${{ secrets.APPLE_ID_PASSWORD }} | ||
TEAM_ID: "SZCNTABEXY" | ||
KEYCHAIN_PASSWORD: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }} | ||
CERT_BASE64: ${{ secrets.APPLE_SIGN_CERT_B64 }} | ||
CERT_PASSWORD: ${{ secrets.APPLE_SIGN_CERT_PASSWORD }} | ||
|
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 |
---|---|---|
|
@@ -48,13 +48,12 @@ done | |
# Create a universal binary. | ||
lipo -create -output cli_darwin_universal cli_darwin_arm64 cli_darwin_amd64 | ||
|
||
export TEAM_ID="SZCNTABEXY" | ||
export APP_IDENTITY="Developer ID Application: Pixie Labs Inc. (${TEAM_ID})" | ||
codesign -f -v --timestamp --options runtime -s "${APP_IDENTITY}" cli_darwin_universal cli_darwin_arm64 cli_darwin_amd64 | ||
|
||
notarytool submit cli_darwin_universal --apple-id [email protected] --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait | ||
notarytool submit cli_darwin_amd64 --apple-id [email protected] --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait | ||
notarytool submit cli_darwin_arm64 --apple-id [email protected] --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait | ||
notarytool submit cli_darwin_universal --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait | ||
notarytool submit cli_darwin_amd64 --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait | ||
notarytool submit cli_darwin_arm64 --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait | ||
|
||
cp cli_darwin_universal "${artifacts_dir}" | ||
cp cli_darwin_amd64 "${artifacts_dir}" | ||
|