From 65dc73495d2ebf6890bb5e15aa5b2ba260dd0e02 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Mon, 4 Dec 2023 10:11:29 -0300 Subject: [PATCH] PM-3350 build.yml added step to validate app for submitting into App Store and have better logs of it --- .github/workflows/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d123dcbd..58fc7b318 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -757,6 +757,21 @@ jobs: find "$HOME/Library/Developer/XCode/DerivedData" -name "upload-symbols" -exec chmod +x {} \; -exec {} -gsp "./src/watchOS/bitwarden/GoogleService-Info.plist" -p ios "./bitwarden-export/Watch_dSYMs" \; + - name: Validate app in App Store + if: | + (github.ref == 'refs/heads/master' + && needs.setup.outputs.rc_branch_exists == 0 + && needs.setup.outputs.hotfix_branch_exists == 0) + || (github.ref == 'refs/heads/rc' && needs.setup.outputs.hotfix_branch_exists == 0) + || github.ref == 'refs/heads/hotfix-rc' + env: + APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }} + APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} + run: | + xcrun altool --validate-app --type ios --file "./bitwarden-export/Bitwarden.ipa" \ + --username "$APPLE_ID_USERNAME" --password "$APPLE_ID_PASSWORD" + shell: bash + - name: Deploy to App Store if: | (github.ref == 'refs/heads/master'