mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
ci
This commit is contained in:
68
.github/workflows/android_ci.yml
vendored
68
.github/workflows/android_ci.yml
vendored
@@ -10,38 +10,38 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current time
|
- name: Get current time
|
||||||
uses: 1466587594/get-current-time@v2
|
uses: 1466587594/get-current-time@v2
|
||||||
id: current-time
|
id: current-time
|
||||||
with:
|
with:
|
||||||
format: YYYYMMDD-HH
|
format: YYYYMMDD-HH
|
||||||
utcOffset: "+08:00"
|
utcOffset: "+08:00"
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
|
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
|
||||||
- name: set up JDK 11
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Decode Keystore
|
- name: Decode Keystore
|
||||||
env:
|
env:
|
||||||
ENCODED_STRING: ${{ secrets.SIGNING_STORE_BASE64 }}
|
ENCODED_STRING: ${{ secrets.SIGNING_STORE_BASE64 }}
|
||||||
run: echo $ENCODED_STRING | base64 -di > app/keystore.jks
|
run: echo $ENCODED_STRING | base64 -di > app/keystore.jks
|
||||||
|
|
||||||
- name: Build apk
|
- name: Build apk
|
||||||
run: flutter build apk --release --split-per-abi
|
run: flutter build apk --release --split-per-abi
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
with:
|
with:
|
||||||
name: app-release.${{ steps.current-time.outputs.formattedTime }}
|
name: app-release.${{ steps.current-time.outputs.formattedTime }}
|
||||||
path: android/app/release/*.apk
|
path: android/app/release/*.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user