mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-05-19 22:50:40 +00:00
Update cd.yml
This commit is contained in:
parent
cffe71c029
commit
d258a8f715
1 changed files with 17 additions and 13 deletions
30
.github/workflows/cd.yml
vendored
30
.github/workflows/cd.yml
vendored
|
@ -7,7 +7,7 @@ name: Build app-dev-release.apk
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ "cd" ]
|
||||
branches: ["cd"]
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
|
@ -17,21 +17,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: "zulu"
|
||||
java-version: "11"
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
|
||||
- name: Check flutter version
|
||||
run: flutter --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Generate intl
|
||||
run: flutter pub run intl_utils:generate
|
||||
|
||||
- name: Analyze project source
|
||||
run: flutter analyze
|
||||
|
||||
- name: Restore Android keystore .jsk and .properties files
|
||||
env:
|
||||
|
@ -45,6 +37,18 @@ jobs:
|
|||
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
|
||||
cp $KEYSTORE_PROPERTIES_PATH ./android
|
||||
|
||||
- name: Check flutter version
|
||||
run: flutter --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Generate intl
|
||||
run: flutter pub run intl_utils:generate
|
||||
|
||||
- name: Analyze project source
|
||||
run: flutter analyze
|
||||
|
||||
- name: Build Apk
|
||||
run: flutter build apk --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart
|
||||
|
||||
|
|
Loading…
Reference in a new issue