Skip to content

Commit

Permalink
Update CI/CD (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber authored Jan 28, 2024
1 parent 539aedf commit 69e13c3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy_beta.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy Beta to TestFlight and Play Store

on:
workflow_dispatch:
release:
types: [ published ]

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 69e13c3

Please sign in to comment.