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: