From 1b8ece1ef19d49acc5ae02965fa2f9c3d1e3d14b Mon Sep 17 00:00:00 2001 From: Michal Checinski Date: Thu, 27 Feb 2025 16:27:09 +0100 Subject: [PATCH] Update TestFlight deployment to use Fastlane for app uploads --- .github/workflows/build-desktop.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index c65366c7796..fd3bd527cd2 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -1210,19 +1210,25 @@ jobs: - name: Deploy to TestFlight id: testflight-deploy - if: | - github.event_name != 'pull_request_target' - && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc-desktop') + # if: | + # github.event_name != 'pull_request_target' + # && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc-desktop') env: APP_STORE_CONNECT_TEAM_ISSUER: ${{ secrets.APP_STORE_CONNECT_TEAM_ISSUER }} APP_STORE_CONNECT_AUTH_KEY: 6TV9MKN3GP run: | - xcrun altool \ - --upload-app \ - --type macos \ - --file "$(find ./dist/mas-universal/Bitwarden*.pkg)" \ - --apiKey $APP_STORE_CONNECT_AUTH_KEY \ - --apiIssuer $APP_STORE_CONNECT_TEAM_ISSUER + brew install fastlane + + echo "{\"issuer_id\":\"$APP_STORE_CONNECT_TEAM_ISSUER\",\"key_id\":\"6TV9MKN3GP\",\"key\":\"$(cat $HOME/private_keys/AuthKey_6TV9MKN3GP.p8)\"}" >> $HOME/secrets/appstoreconnect-fastlane.json + + fastlane pilot upload --app_identifier "com.bitwarden.desktop" --changelog "test" --api_key_path $HOME/secrets/appstoreconnect-fastlane.json --pkg "$(find ./dist/mas-universal/Bitwarden*.pkg)" + + # xcrun altool \ + # --upload-app \ + # --type macos \ + # --file "$(find ./dist/mas-universal/Bitwarden*.pkg)" \ + # --apiKey $APP_STORE_CONNECT_AUTH_KEY \ + # --apiIssuer $APP_STORE_CONNECT_TEAM_ISSUER - name: Post message to a Slack channel id: slack-message