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:
Vadim 2023-02-15 17:34:28 +03:00 committed by GitHub
parent 1372a75d3b
commit 59e440dfd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -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

View file

@ -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