From 3d409ffd773f3d34f6fabfc19a06f857288ea99b Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 28 Jul 2025 09:49:31 +0530 Subject: [PATCH] Try adding existing cert --- .github/workflows/photos-internal-release.yml | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/photos-internal-release.yml b/.github/workflows/photos-internal-release.yml index 6a9df0da1d..d43f47d36d 100644 --- a/.github/workflows/photos-internal-release.yml +++ b/.github/workflows/photos-internal-release.yml @@ -72,7 +72,32 @@ jobs: pod install working-directory: mobile/apps/photos/ios - - name: Create ExportOptions.plist + - name: Install codemagic-cli-tools + run: pip3 install codemagic-cli-tools + + - name: Add certificates + run: | + # Create a temporary keychain + keychain initialize + + # Decode and import the certificate + CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 + echo -n "${{ secrets.MAC_OS_CERTIFICATE }}" | base64 --decode -o $CERTIFICATE_PATH + keychain add-certificates --certificate $CERTIFICATE_PATH --certificate-password "${{ secrets.MAC_OS_CERTIFICATE_PASSWORD }}" + + - name: Add provisioning profiles + run: | + # Decode and install all provisioning profiles + PROFILES_HOME="$HOME/Library/MobileDevice/Provisioning Profiles" + mkdir -p "$PROFILES_HOME" + IFS=$'\n' + for profile in ${{ secrets.MAC_OS_PROFILES_BASE64 }}; do + PROFILE_PATH="$(mktemp "$PROFILES_HOME"/$(uuidgen).mobileprovision)" + echo "$profile" | base64 --decode > "$PROFILE_PATH" + echo "Saved provisioning profile to $PROFILE_PATH" + done + + - name: Create simple ExportOptions.plist run: | cat < ios/ExportOptions.plist @@ -83,19 +108,6 @@ jobs: app-store teamID ${{ secrets.IOS_TEAM_ID }} - provisioningProfiles - - io.ente.photos - match AppStore io.ente.photos - io.ente.frame - match AppStore io.ente.frame - io.ente.frame.EntePeopleWidget - match AppStore io.ente.frame.EntePeopleWidget - io.ente.frame.EnteAlbumWidget - match AppStore io.ente.frame.EnteAlbumWidget - io.ente.frame.EnteMemoryWidget - match AppStore io.ente.frame.EnteMemoryWidget - EOF