From 8e3d53b5c97a57fc98b9e24f803f785233969385 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Wed, 26 Oct 2022 01:37:47 -0700 Subject: [PATCH] Tests --- .github/scripts/signing.sh | 2 +- .github/workflows/release.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/scripts/signing.sh b/.github/scripts/signing.sh index 66e1fbd..efb98d6 100755 --- a/.github/scripts/signing.sh +++ b/.github/scripts/signing.sh @@ -2,4 +2,4 @@ # Create directories for ASC key mkdir .private_keys -echo -n "$APPLE_API_KEY_DATA" > .private_keys/AuthKey.p8 +echo -n "$APPLE_API_KEY_DATA" > $(pwd)/.private_keys/AuthKey.p8 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 543373b..e372ff2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,10 +51,14 @@ jobs: sed -i '' -e "s/GITHUB_CI_VERSION/$CLEAN_TAG/g" Sources/Config/Config.xcconfig sed -i '' -e "s/GITHUB_BUILD_NUMBER/1.$RUN_ID/g" Sources/Config/Config.xcconfig sed -i '' -e "s/GITHUB_BUILD_URL/https:\/\/github.com\/maxgoedjen\/secretive\/actions\/runs\/$RUN_ID/g" Sources/Secretive/Credits.rtf + - name: Buildtest + run: pwd + - name: lsTest + run: ls $(pwd)/.private_keys - name: Build - run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme Secretive -configuration Release -archivePath Archive.xcarchive archive -allowProvisioningUpdates -authenticationKeyIssuerID $APPLE_API_ISSUER -authenticationKeyID $APPLE_API_KEY_ID -authenticationKeyPath .private_keys/AuthKey.p8 + run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme Secretive -configuration Release -archivePath Archive.xcarchive archive -allowProvisioningUpdates -authenticationKeyIssuerID $APPLE_API_ISSUER -authenticationKeyID $APPLE_API_KEY_ID -authenticationKeyPath $(pwd)/.private_keys/AuthKey.p8 - name: Export Products - run: xcrun xcodebuild -exportArchive -archivePath Archive.xcarchive -exportOptionsPlist Sources/Secretive/ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID $APPLE_API_ISSUER -authenticationKeyID $APPLE_API_KEY_ID -authenticationKeyPath .private_keys/AuthKey.p8 + run: xcrun xcodebuild -exportArchive -archivePath Archive.xcarchive -exportOptionsPlist Sources/Secretive/ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID $APPLE_API_ISSUER -authenticationKeyID $APPLE_API_KEY_ID -authenticationKeyPath $(pwd)/.private_keys/AuthKey.p8 - name: Create ZIPs run: | ditto -c -k --sequesterRsrc --keepParent Archive.xcarchive/Products/Applications/Secretive.app ./Secretive.zip @@ -63,7 +67,7 @@ jobs: env: APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }} - run: xcrun notarytool submit --key .private_keys/AuthKey_$APPLE_API_KEY_ID.p8 --key-id $APPLE_API_KEY_ID --issuer $APPLE_API_ISSUER Secretive.zip + run: xcrun notarytool submit --key $(pwd)/.private_keys/AuthKey_$APPLE_API_KEY_ID.p8 --key-id $APPLE_API_KEY_ID --issuer $APPLE_API_ISSUER Secretive.zip - name: Document SHAs run: | echo "sha-512:"