Skip to content

Commit

Permalink
Attempt to notarize macOS app
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Nunamaker committed Mar 12, 2024
1 parent 267b596 commit 71da397
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
artifact_name:
description: 'Artifact name'
required: false
# push:
# branches: [main]
push:
branches: [package]

jobs:
build:
name: Build on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
runs-on: tim_mbp
runs-on: ${{ matrix.os }}
# runs-on: [self-hosted, macOS, ARM64]
strategy:
matrix:
# os: [ubuntu-latest, macos-latest-xlarge, windows-latest]
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
id: notarization_submit
run: |
echo "Submitting app for notarization..."
NOTARIZATION_OUTPUT=$(xcrun altool --notarize-app --primary-bundle-id "com.vana.selfie" --username "[email protected]" --password "@keychain:APP_SPECIFIC_PASSWORD" --file selfie.zip --output-format xml)
NOTARIZATION_OUTPUT=$(xcrun altool --notarize-app --primary-bundle-id "com.vana.selfie" --username ${{ secrets.APPLE_ID }} --password ${{ secrets.APPLE_SELFIE_PASSWORD }} --file selfie.zip --output-format xml)
echo "${NOTARIZATION_OUTPUT}"
REQUEST_UUID=$(echo "${NOTARIZATION_OUTPUT}" | grep -oE 'RequestUUID>[^<]+' | sed 's/RequestUUID>//')
if [[ -z "$REQUEST_UUID" ]]; then
Expand All @@ -135,7 +135,7 @@ jobs:
run: |
echo "Polling for notarization status..."
while : ; do
STATUS_OUTPUT=$(xcrun altool --notarization-info $REQUEST_UUID --username ${{ secrets.APPLE_ID }} --password "@keychain:APP_SPECIFIC_PASSWORD" --output-format xml)
STATUS_OUTPUT=$(xcrun altool --notarization-info $REQUEST_UUID --username ${{ secrets.APPLE_ID }} --password ${{ secrets.APPLE_SELFIE_PASSWORD }} --output-format xml)
echo "${STATUS_OUTPUT}"
if echo "${STATUS_OUTPUT}" | grep -q 'Status: success'; then
echo "Notarization succeeded."
Expand Down

0 comments on commit 71da397

Please sign in to comment.