fix(workflows): Improve quality of alpha build workflows

This commit is contained in:
Jagandeep Brar
2022-01-07 15:28:51 -06:00
parent 1038799db1
commit 3778189ead
4 changed files with 28 additions and 31 deletions

View File

@@ -13,6 +13,13 @@ jobs:
with:
ref: 'master'
fetch-depth: 0
- name: Setup Private Keys
run: |
echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 --decode > android/app/google-services.json
echo ${{ secrets.KEY_JKS }} | base64 --decode > android/key.jks
echo ${{ secrets.KEY_PROPERTIES }} | base64 --decode > android/key.properties
echo ${{ secrets.GOOGLE_PLAY_API }} | base64 --decode > .fastlane-android-auth.json
- name: Install Ruby
uses: ruby/setup-ruby@v1
@@ -27,15 +34,12 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2.0.3
with:
flutter-version: '2.9.0-0.1.pre'
channel: 'beta'
- name: Setup Keystore & Firebase
- name: Setup Flutter
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 --decode > android/app/google-services.json
echo ${{ secrets.KEY_JKS }} | base64 --decode > android/key.jks
echo ${{ secrets.KEY_PROPERTIES }} | base64 --decode > android/key.properties
echo ${{ secrets.GOOGLE_PLAY_API }} | base64 --decode > .fastlane-android-auth.json
flutter pub get
- name: Run Fastlane
working-directory: ${{ github.workspace }}/android

View File

@@ -19,6 +19,13 @@ jobs:
with:
ssh-private-key: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
- name: Setup Private Keys
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > ios/GoogleService-Info.plist
echo ${{ secrets.P8_3Z55GTHMWY }} | base64 --decode > ios/fastlane/3Z55GTHMWY.p8
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
@@ -37,10 +44,9 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2.0.3
with:
flutter-version: '2.9.0-0.1.pre'
channel: 'beta'
- name: Install Flutter Packages
- name: Setup Flutter
working-directory: ${{ github.workspace }}
run: |
flutter pub get
@@ -49,12 +55,6 @@ jobs:
working-directory: ${{ github.workspace }}/ios
run: |
pod install --repo-update
- name: Setup Keys & Firebase
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > ios/GoogleService-Info.plist
echo ${{ secrets.P8_3Z55GTHMWY }} | base64 --decode > ios/fastlane/3Z55GTHMWY.p8
- name: Run Fastlane
working-directory: ${{ github.workspace }}/ios

View File

@@ -13,7 +13,13 @@ jobs:
with:
ref: 'master'
fetch-depth: 0
- name: Setup Keys
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > macos/GoogleService-Info.plist
echo ${{ secrets.P8_3Z55GTHMWY }} | base64 --decode > macos/fastlane/3Z55GTHMWY.p8
- name: Setup SSH Keys
uses: webfactory/ssh-agent@v0.5.4
with:
@@ -37,24 +43,18 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2.0.3
with:
flutter-version: '2.9.0-0.1.pre'
channel: 'beta'
- name: Install Flutter Packages
- name: Setup Flutter
working-directory: ${{ github.workspace }}
run: |
flutter config --enable-macos-desktop
flutter pub get
- name: Install Pods
working-directory: ${{ github.workspace }}/macos
run: |
pod install --repo-update
- name: Setup Keys & Firebase
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > macos/GoogleService-Info.plist
echo ${{ secrets.P8_3Z55GTHMWY }} | base64 --decode > macos/fastlane/3Z55GTHMWY.p8
- name: Run Fastlane
working-directory: ${{ github.workspace }}/macos