mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
* fix: fix android build * fix: Android app label * ci: init ci * ci: adjust build.gradle and setup signing configuration * ci: adjust build.gradle and setup signing configuration * ci: * ci * ci * ci * Update android_ci.yml * Update android_ci.yml * Squashed commit of the following: commit484fc61ad2Author: lifegpc <[email protected]> Date: Fri Sep 8 11:49:47 2023 +0800 Update android_ci.yml * Squashed commit of the following: commit484fc61ad2Author: lifegpc <[email protected]> Date: Fri Sep 8 11:49:47 2023 +0800 Update android_ci.yml * ci * ci * Update and rename android_ci.yml to android.yml --------- Co-authored-by: 13574 <[email protected]>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Android Build
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
paths-ignore:
|
|
- '.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 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
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
|
|
env:
|
|
CI: true
|
|
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: app-release
|
|
path: build/app/outputs/flutter-apk/*
|