mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
73 lines
2.0 KiB
YAML
73 lines
2.0 KiB
YAML
name: Build Android
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
DECRYPTKEY_PLAYSTORE_SIGNING_KEY:
|
|
required: true
|
|
DECRYPTKEY_PROPERTIES:
|
|
required: true
|
|
jobs:
|
|
build_android_apk:
|
|
name: APK file
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Common flutter setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
- name: Decrypt config files
|
|
run: |
|
|
cd ./fastlane/metadata/envfiles
|
|
chmod +x ./decrypt_secrets.sh
|
|
./decrypt_secrets.sh
|
|
shell: bash
|
|
env:
|
|
DECRYPTKEY_PLAYSTORE_SIGNING_KEY: ${{ secrets.DECRYPTKEY_PLAYSTORE_SIGNING_KEY }}
|
|
DECRYPTKEY_PROPERTIES: ${{ secrets.DECRYPTKEY_PROPERTIES }}
|
|
|
|
- name: Build APK
|
|
run: flutter build apk --release
|
|
|
|
- uses: actions/upload-artifact@v5
|
|
with:
|
|
name: builds-apk
|
|
path: build/app/outputs/flutter-apk/app-release.apk
|
|
|
|
build_android_aab:
|
|
name: AAB file
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Common setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
- name: Decrypt config files
|
|
run: |
|
|
cd ./fastlane/metadata/envfiles
|
|
chmod +x ./decrypt_secrets.sh
|
|
./decrypt_secrets.sh
|
|
shell: bash
|
|
env:
|
|
DECRYPTKEY_PLAYSTORE: ${{ secrets.DECRYPTKEY_PLAYSTORE }}
|
|
DECRYPTKEY_PLAYSTORE_SIGNING_KEY: ${{ secrets.DECRYPTKEY_PLAYSTORE_SIGNING_KEY }}
|
|
DECRYPTKEY_PROPERTIES: ${{ secrets.DECRYPTKEY_PROPERTIES }}
|
|
|
|
- name: Build AAB
|
|
run: flutter build appbundle --release
|
|
|
|
- uses: actions/upload-artifact@v5
|
|
with:
|
|
name: builds-aab
|
|
path: build/app/outputs/bundle/release/app-release.aab |