From a17125d4b4a251bf16277be42ba126aca9209123 Mon Sep 17 00:00:00 2001 From: Thilo Molitor Date: Thu, 25 Jul 2024 00:07:47 +0200 Subject: [PATCH] Update quicksy workflow to match current stable workflow --- .github/workflows/quicksy.build-push.yml | 16 +++++++++++----- .github/workflows/stable.build-push.yml | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quicksy.build-push.yml b/.github/workflows/quicksy.build-push.yml index d8562007b..6f3fd18f4 100644 --- a/.github/workflows/quicksy.build-push.yml +++ b/.github/workflows/quicksy.build-push.yml @@ -120,15 +120,21 @@ jobs: env: CHANGELOG: ${{ steps.releasenotes.outputs.notes_ios }} run: | - path="$(mktemp -d)" - echo -n "$CHANGELOG" > "$path/release_notes.txt" - echo "path=$path" | tee /dev/stderr >> "$GITHUB_OUTPUT" + path_ios="$(mktemp -d)" + cp -av ./appstore_metadata/* "$path_ios" + echo -n "$(date +%Y) Thilo Molitor" > "$path_ios/copyright.txt" + for dir in */; do + if [[ -d "$dir" && "$dir" == *-* ]]; then + echo -n "$CHANGELOG_IOS" > "$path_ios/${dir%/}/release_notes.txt" + fi + done + echo "path_ios=$path_ios" | tee /dev/stderr >> "$GITHUB_OUTPUT" - name: Publish ios to appstore connect #run: xcrun altool --upload-app --file ./Monal/build/ipa/Monal.ipa --type ios --asc-provider S8D843U34Y --team-id S8D843U34Y -u $(cat /Users/ci/apple_connect_upload_mail.txt) -p "$(cat /Users/ci/apple_connect_upload_secret.txt)" env: - DELIVER_METADATA_PATH: ${{ steps.metadata.outputs.path }} + DELIVER_METADATA_PATH: ${{ steps.metadata.outputs.path_ios }} run: | - fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Monal.ipa" app_version:"${{ steps.releasenotes.outputs.version }}" reject_if_possible:true submit_for_review:false automatic_release:false skip_metadata: true skip_screenshots: true + fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Monal.ipa" app_version:"${{ steps.releasenotes.outputs.version }}" reject_if_possible:true submit_for_review:true automatic_release:true skip_metadata:false skip_screenshots:true precheck_include_in_app_purchases:false version_check_wait_retry_limit:10 force:true - name: Remove fastlane metadata directory run: | rm -rf "${{ steps.metadata.outputs.path }}" diff --git a/.github/workflows/stable.build-push.yml b/.github/workflows/stable.build-push.yml index 4f5a3c68d..42f1248eb 100644 --- a/.github/workflows/stable.build-push.yml +++ b/.github/workflows/stable.build-push.yml @@ -155,7 +155,7 @@ jobs: fastlane run upload_to_app_store api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" ipa:"./Monal/build/ipa/Monal.ipa" app_version:"${{ steps.releasenotes.outputs.version }}" reject_if_possible:true submit_for_review:true automatic_release:true skip_metadata:false skip_screenshots:true precheck_include_in_app_purchases:false version_check_wait_retry_limit:10 force:true - name: Notarize catalyst run: xcrun notarytool submit ./Monal/build/app/Monal.zip --wait --team-id S8D843U34Y --key "/Users/ci/appstoreconnect/apiKey.p8" --key-id "$(cat /Users/ci/appstoreconnect/apiKeyId.txt)" --issuer "$(cat /Users/ci/appstoreconnect/apiIssuerId.txt)" - - name: staple + - name: Staple notarisation run: | cd Monal/build/app/tar_release/ xcrun stapler staple "$APP_DIR"