feat: enhance release workflow with prerelease and make_latest options

This commit is contained in:
Abolfazl
2026-05-01 15:44:21 +03:30
parent 464a6e1dd0
commit c0dd3f7e6e
+3 -2
View File
@@ -16,7 +16,7 @@ on:
default: false default: false
type: boolean type: boolean
make_public: make_public:
description: "Make release public immediately (false = hidden draft)" description: "Make release public immediately (false = hidden draft + prerelease)"
required: false required: false
default: false default: false
type: boolean type: boolean
@@ -93,5 +93,6 @@ jobs:
tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || github.event.inputs.release_tag }} tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || github.event.inputs.release_tag }}
files: final-assets/* files: final-assets/*
generate_release_notes: true generate_release_notes: true
prerelease: false prerelease: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make_public != 'true' }}
draft: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make_public != 'true' }} draft: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make_public != 'true' }}
make_latest: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.make_public == 'true') && 'true' || 'false' }}