mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Android Build
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
paths-ignore:
|
|
- '.devcontainer/**'
|
|
- '.github/workflows/ios.yml'
|
|
- '.github/workflows/linux.yml'
|
|
- '.github/workflows/macos.yml'
|
|
- '.github/workflows/web.yml'
|
|
- '.github/workflows/windows.yml'
|
|
- 'ios/**'
|
|
- 'linux/**'
|
|
- 'macos/**'
|
|
- 'web/**'
|
|
- 'windows/**'
|
|
- '.gitignore'
|
|
- '.gitmodules'
|
|
- 'README.md'
|
|
- 'LICENSE'
|
|
jobs:
|
|
android:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
- name: Setup flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
- name: set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
- name: Decode Keystore
|
|
env:
|
|
ENCODED_STRING: ${{ secrets.SIGNING_STORE_BASE64 }}
|
|
run: echo $ENCODED_STRING | base64 -di > android/app/keystore.jks
|
|
- name: Build apk
|
|
run: flutter build apk --release --split-per-abi -P --debug
|
|
env:
|
|
CI: true
|
|
SIGNING_KEY_ALIAS: release
|
|
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app-release
|
|
path: build/app/outputs/flutter-apk/*
|