This commit is contained in:
Vadim 2023-06-21 08:44:37 +02:00
parent bef80fa14e
commit a9b75af851

View file

@ -7,6 +7,11 @@ name: Build prod .aab & .apk
on: on:
workflow_dispatch: workflow_dispatch:
push:
branches:
- "main"
paths:
- pubspec.yaml"
env: env:
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
@ -89,3 +94,15 @@ jobs:
with: with:
name: m3_lightmeter_bundle name: m3_lightmeter_bundle
path: build/app/outputs/bundle/prodRelease/app-prod-release.aab 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: