diff --git a/.github/workflows/deploy_beta.yml b/.github/workflows/deploy_beta.yml index 6790fc63..0aad7140 100644 --- a/.github/workflows/deploy_beta.yml +++ b/.github/workflows/deploy_beta.yml @@ -1,6 +1,7 @@ name: Deploy Beta to TestFlight and Play Store on: + workflow_dispatch: release: types: [ published ] @@ -48,8 +49,8 @@ jobs: with: ssh-private-key: ${{ secrets.MATCH_DEPLOY_KEY }} - - if: matrix.platform == 'ios' - name: Build and Deploy to TestFlight + - if: matrix.platform == 'ios' && github.event_name == 'release' + name: Build and Deploy With Release Notes to TestFlight run: | cd ./ios bundle exec fastlane ios_beta @@ -60,6 +61,17 @@ jobs: MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} RELEASE_NOTES: ${{ github.event.release.body }} + - if: matrix.platform == 'ios' && github.event_name != 'release' + name: Build and Deploy to TestFlight + run: | + cd ./ios + bundle exec fastlane ios_beta + env: + APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.ASC_KEY_ID }} + APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }} + APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.ASC_PRIVATE_KEY }} + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + - if: matrix.platform == 'android' name: Deserialize Keystore File run: cd ./android/app && echo "$ANDROID_KEYSTORE_FILE" | base64 --decode > ./upload-keystore