mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue