mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +00:00
wip
This commit is contained in:
parent
bef80fa14e
commit
a9b75af851
1 changed files with 17 additions and 0 deletions
17
.github/workflows/cd_prod.yml
vendored
17
.github/workflows/cd_prod.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue