Added beta release track to CD

This commit is contained in:
Vadim 2024-11-11 19:04:08 +01:00
parent 1d22ec5439
commit bfe3dc0ef4

View file

@ -27,6 +27,14 @@ on:
required: true required: true
type: boolean type: boolean
default: true default: true
release-track:
description: "Release track"
type: choice
required: true
options:
- production
- beta
default: production
env: env:
RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }} RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }}
@ -128,6 +136,7 @@ jobs:
with: with:
artifacts: "m3_lightmeter.apk" artifacts: "m3_lightmeter.apk"
skipIfReleaseExists: true skipIfReleaseExists: true
prerelease: ${{ inputs.release-track == 'beta' }}
tag: "v${{ github.event.inputs.version }}" tag: "v${{ github.event.inputs.version }}"
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}" bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
@ -178,7 +187,7 @@ jobs:
packageName: com.vodemn.lightmeter packageName: com.vodemn.lightmeter
releaseFiles: app-prod-release.aab releaseFiles: app-prod-release.aab
releaseName: ${{ env.release_name }} releaseName: ${{ env.release_name }}
track: production track: ${{ inputs.release-track }}
status: completed status: completed
debugSymbols: merged_native_libs.zip debugSymbols: merged_native_libs.zip
whatsNewDirectory: whatsnew whatsNewDirectory: whatsnew