mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-30 07:36:46 +08:00
Android ci (#2)
* 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]>
This commit is contained in:
48
.github/workflows/android.yml
vendored
Normal file
48
.github/workflows/android.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
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/*
|
||||
Reference in New Issue
Block a user