Move scripts to a dedicated directory

(cherry picked from commit df59d6ca54dc5b4bf88f3ee81c2c09cc23d925b7)
This commit is contained in:
Nguyen Thai
2024-01-10 11:42:04 +07:00
committed by Dat H. Pham
parent 705a54ba5c
commit 3c7c7249d7
13 changed files with 57 additions and 29 deletions
+5 -9
View File
@@ -37,7 +37,7 @@ jobs:
- name: Setup Firebase env
env:
FIREBASE_ENV: ${{ secrets.FIREBASE_ENV }}
run: echo "$FIREBASE_ENV" > ./configurations/env.fcm
run: ./scripts/setup-firebase.sh
- name: Setup Fastlane
uses: ruby/setup-ruby@v1
@@ -58,20 +58,16 @@ jobs:
env:
PLAY_STORE_UPLOAD_KEY_BASE64: ${{ secrets.PLAY_STORE_UPLOAD_KEY_BASE64 }}
PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }}
run: |
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
run: ../scripts/setup-android.sh
working-directory: ${{ matrix.os }}
- name: Setup iOS environment
if: matrix.os == 'ios'
run: |
flutter pub get
pod install && pod update
run: ../scripts/setup-ios.sh
working-directory: ${{ matrix.os }}
- name: Run prebuild
run: bash prebuild.sh
run: ./scripts/prebuild.sh
- name: Build and deploy
env:
@@ -81,5 +77,5 @@ jobs:
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
run: bundle exec fastlane release
run: ../scripts/build-release.sh
working-directory: ${{ matrix.os }}