create-release job

This commit is contained in:
Vadim 2023-06-25 10:55:58 +02:00
parent 64cfb3cde1
commit 8193c056d5

View file

@ -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 }}"