mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Added option to create separate releases
This commit is contained in:
parent
75599ea5df
commit
62cddc1f38
1 changed files with 10 additions and 2 deletions
12
.github/workflows/create_release.yml
vendored
12
.github/workflows/create_release.yml
vendored
|
@ -23,6 +23,12 @@ on:
|
||||||
description: "Release notes"
|
description: "Release notes"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
github-release-release:
|
||||||
|
type: boolean
|
||||||
|
description: Create Github release
|
||||||
|
google-play-release:
|
||||||
|
type: boolean
|
||||||
|
description: Create Google Play release
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_prod.dart
|
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_prod.dart
|
||||||
|
@ -30,6 +36,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .apk & .aab
|
name: Build .apk & .aab
|
||||||
|
if: ${{ inputs.github-release-release }} || ${{ inputs.google-play-release }}
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
@ -120,6 +127,7 @@ jobs:
|
||||||
|
|
||||||
update-version-in-repo:
|
update-version-in-repo:
|
||||||
name: Update repo version
|
name: Update repo version
|
||||||
|
if: ${{ inputs.github-release-release }}
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -146,7 +154,7 @@ jobs:
|
||||||
|
|
||||||
create-github-release:
|
create-github-release:
|
||||||
name: Create Github release
|
name: Create Github release
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main' && ${{ inputs.github-release-release }}
|
||||||
needs: [build, generate-release-notes, update-version-in-repo]
|
needs: [build, generate-release-notes, update-version-in-repo]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -179,7 +187,7 @@ jobs:
|
||||||
|
|
||||||
create-google-play-release:
|
create-google-play-release:
|
||||||
name: Create Google Play release
|
name: Create Google Play release
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main' && ${{ inputs.google-play-release }}
|
||||||
needs: [build, generate-release-notes]
|
needs: [build, generate-release-notes]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue