mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-26 17:30:41 +00:00
create-release
job
This commit is contained in:
parent
64cfb3cde1
commit
8193c056d5
1 changed files with 16 additions and 2 deletions
18
.github/workflows/cd_prod.yml
vendored
18
.github/workflows/cd_prod.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
description: "Version"
|
||||
required: true
|
||||
type: string
|
||||
changelog:
|
||||
description: "Changelog"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
env:
|
||||
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
|
||||
|
@ -22,7 +26,6 @@ jobs:
|
|||
name: Build .apk & .aab
|
||||
runs-on: macos-11
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
# - uses: shaunco/ssh-agent@git-repo-mapping
|
||||
# with:
|
||||
|
@ -100,7 +103,6 @@ jobs:
|
|||
update-version-in-repo:
|
||||
name: Update repo version
|
||||
runs-on: macos-11
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -117,3 +119,15 @@ jobs:
|
|||
git add -A
|
||||
git commit -m "Version bump"
|
||||
git push
|
||||
|
||||
create-release:
|
||||
name: Create Github release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "m3_lightmeter_apk.apk, m3_lightmeter_bundle.aab"
|
||||
body: "${{ github.event.inputs.changelog }}"
|
||||
skipIfReleaseExists: true
|
||||
tag: "v${{ github.event.inputs.version }}"
|
||||
|
|
Loading…
Reference in a new issue