mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Build apk on tag creation (#33)
* Create cd.yml * added artifact upload * fixed jobs sequence * moved upload to build job * jobs rename
This commit is contained in:
parent
1372a75d3b
commit
59e440dfd7
2 changed files with 9 additions and 3 deletions
7
.github/workflows/cd.yml
vendored
7
.github/workflows/cd.yml
vendored
|
@ -3,7 +3,7 @@
|
|||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
|
||||
name: Build Apk
|
||||
name: Build app-dev-release.apk
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -35,3 +35,8 @@ jobs:
|
|||
|
||||
- name: Build Apk
|
||||
run: flutter build apk --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: m3_lightmeter.apk
|
||||
path: build/app/outputs/flutter-apk/app-dev-release.apk
|
||||
|
|
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -3,7 +3,7 @@
|
|||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
|
||||
name: Dart
|
||||
name: Pull Request check
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -14,6 +14,7 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -31,7 +32,7 @@ jobs:
|
|||
run: flutter pub run intl_utils:generate
|
||||
|
||||
- name: Analyze project source
|
||||
run: flutter analyze
|
||||
run: flutter analyze lib --fatal-infos
|
||||
|
||||
- name: Run tests
|
||||
run: flutter test
|
||||
|
|
Loading…
Reference in a new issue