From a9b75af8517cd88948c88b5e74028857b0cd210c Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 21 Jun 2023 08:44:37 +0200 Subject: [PATCH] wip --- .github/workflows/cd_prod.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index f8f0274..ed06c2c 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -7,6 +7,11 @@ name: Build prod .aab & .apk on: workflow_dispatch: + push: + branches: + - "main" + paths: + - pubspec.yaml" env: BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart @@ -89,3 +94,15 @@ jobs: with: name: m3_lightmeter_bundle path: build/app/outputs/bundle/prodRelease/app-prod-release.aab + + create_release: + runs-on: macos-11 + if: ${{contains(github.event.head_commit.message, 'Version bump')}} + steps: + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifacts: "app-prod-release.apk" + body: ${{github.event.head_commit.message}} + makeLatest: true + tag: