mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
66 lines
1.8 KiB
YAML
66 lines
1.8 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'
|
|
|
|
- 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: update_alpha
|
|
subdirectory: android
|
|
|
|
# subdirectory: packages/smooth_app/android
|
|
# env:
|
|
# SIGN_STORE_PATH: ./../fastlane/envfiles/keystore.jks
|
|
# SIGN_STORE_PASSWORD: ${{ secrets.SIGN_STORE_PASSWORD }}
|
|
# SIGN_KEY_ALIAS: ${{ secrets.SIGN_KEY_ALIAS }}
|
|
# SIGN_KEY_PASSWORD: ${{ secrets.SIGN_KEY_PASSWORD }}
|
|
|