mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: Google Play release
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'release/*'
|
|
|
|
jobs:
|
|
deploy_android:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 12.x
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '2.7'
|
|
|
|
- name: Decrypt config files
|
|
run: cd ./android/fastlane/envfiles && chmod +x ./decrypt_secrets.sh && ./decrypt_secrets.sh
|
|
env:
|
|
DECRYPTKEY_PLAYSTORE: ${{ secrets.DECRYPTKEY_PLAYSTORE }}
|
|
DECRYPTKEY_PLAYSTORE_SIGNING_KEY: ${{ secrets.DECRYPTKEY_PLAYSTORE_SIGNING_KEY }}
|
|
DECRYPTKEY_PROPERTIES: ${{ secrets.DECRYPTKEY_PROPERTIES }}
|
|
|
|
- name: Setup Flutter
|
|
uses: subosito/flutter-action@v1
|
|
with:
|
|
channel: 'stable'
|
|
|
|
- run: dart --version
|
|
- run: flutter --version
|
|
|
|
- name: Install Flutter dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Generated translation files
|
|
run: flutter gen-l10n
|
|
|
|
- name: Bump version
|
|
uses: maierj/fastlane-action@v2.0.0
|
|
with:
|
|
lane: setVersion
|
|
subdirectory: android
|
|
|
|
- name: Build AAB
|
|
run: flutter build appbundle --release --no-sound-null-safety
|
|
env:
|
|
WGER_API_KEY: ${{ secrets.WGER_API_KEY }}
|
|
|
|
- name: Run Fastlane
|
|
uses: maierj/fastlane-action@v2.0.0
|
|
with:
|
|
lane: production
|
|
subdirectory: android
|