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" description: "Version"
required: true required: true
type: string type: string
changelog:
description: "Changelog"
required: true
type: string
env: env:
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
@ -22,7 +26,6 @@ jobs:
name: Build .apk & .aab name: Build .apk & .aab
runs-on: macos-11 runs-on: macos-11
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
# - uses: shaunco/ssh-agent@git-repo-mapping # - uses: shaunco/ssh-agent@git-repo-mapping
# with: # with:
@ -100,7 +103,6 @@ jobs:
update-version-in-repo: update-version-in-repo:
name: Update repo version name: Update repo version
runs-on: macos-11 runs-on: macos-11
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -117,3 +119,15 @@ jobs:
git add -A git add -A
git commit -m "Version bump" git commit -m "Version bump"
git push 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 }}"