install missing dependencies for fastlane #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: | |
push: | |
branches: [main, feature/android-release-pipeline] | |
paths: | |
- ".github/workflows/mobile.yml" | |
- "crates/ui/android/**" | |
- "crates/ui/lib/mobile/**" | |
- "crates/ui/pubspec.yaml" | |
- "crates/ui/pubspec.lock" | |
name: Mobile App | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build-android-remote: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: "crates/ui/pubspec.yaml" | |
- name: Set up ruby env | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.2 | |
bundler-cache: true | |
- name: Decode keystore | |
env: | |
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }} | |
run: echo "$ANDROID_KEYSTORE" | base64 -d > keystore.jks | |
working-directory: crates/ui/android/app | |
- name: Create properties file | |
env: | |
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | |
ANDROID_SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }} | |
ANDROID_SIGNING_KEY_ALIAS: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }} | |
run: | | |
echo "storePassword=$ANDROID_KEYSTORE_PASSWORD" > key.properties | |
echo "keyPassword=$ANDROID_SIGNING_KEY_PASSWORD" >> key.properties | |
echo "keyAlias=$ANDROID_SIGNING_KEY_ALIAS" >> key.properties | |
echo "storeFile=keystore.jks" >> key.properties | |
working-directory: crates/ui/android | |
- name: Build | |
run: make android_bundle | |
working-directory: crates/ui | |
- name: Decode service account file | |
env: | |
SERVICE_ACCOUNT_KEY_JSON: ${{ secrets.SERVICE_ACCOUNT_KEY_JSON }} | |
run: echo $SERVICE_ACCOUNT_KEY_JSON | base64 -d > service_account_key.json | |
working-directory: crates/ui/android | |
- name: Deploy | |
run: | | |
bundle install | |
bundle exec fastlane beta | |
working-directory: crates/ui/android |