-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3edca4f
commit 8933f7f
Showing
1 changed file
with
7 additions
and
22 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 |
---|---|---|
|
@@ -92,28 +92,13 @@ jobs: | |
with: | ||
name: Specify_macos | ||
|
||
- name: Upload the Mac package for notarization | ||
run: > | ||
xcrun altool --notarize-app --primary-bundle-id org.specifysoftware | ||
--username [email protected] --password $AC_PASSWORD | ||
--file Specify_macos/Specify_macos.dmg | tee notarize-app-output.txt; | ||
grep -q "RequestUUID = " notarize-app-output.txt || { echo "Uploading package for notarization failed!"; exit 1; } | ||
env: | ||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }} | ||
|
||
- name: Get the request UUID | ||
run: sed -En 's/RequestUUID = (.*)$/\1/p' notarize-app-output.txt | tee request-uuid.txt | ||
|
||
- name: Check the notarization status | ||
run: > | ||
for i in {1..60}; do | ||
sleep 120; | ||
xcrun altool --notarization-info $(< request-uuid.txt) | ||
--username [email protected] --password $AC_PASSWORD | ||
| tee notarization-info.txt; | ||
grep -q "Status: in progress" notarization-info.txt || break; | ||
done; | ||
grep -q "Status: success" notarization-info.txt || { echo "Notarization failed!"; exit 1; } | ||
- name: Notarize the Mac package | ||
run: | | ||
xcrun notarytool submit Specify_macos/Specify_macos.dmg --wait \ | ||
--apple-id "[email protected]" \ | ||
--password "$AC_PASSWORD" \ | ||
| tee notarize-app-output.txt | ||
grep -q "status: Accepted" notarize-app-output.txt || { echo "Notarization failed!"; exit 1; } | ||
env: | ||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }} | ||
|
||
|