From 59e440dfd73b62196841f9ee3778bcdb93cce2d7 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:34:28 +0300 Subject: [PATCH] Build apk on tag creation (#33) * Create cd.yml * added artifact upload * fixed jobs sequence * moved upload to build job * jobs rename --- .github/workflows/cd.yml | 7 ++++++- .github/workflows/ci.yml | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4664968..aebef22 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ab48c6..023ef9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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