Skip to content

Commit c0dd3f7

Browse files
committed
feat: enhance release workflow with prerelease and make_latest options
1 parent 464a6e1 commit c0dd3f7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
default: false
1717
type: boolean
1818
make_public:
19-
description: "Make release public immediately (false = hidden draft)"
19+
description: "Make release public immediately (false = hidden draft + prerelease)"
2020
required: false
2121
default: false
2222
type: boolean
@@ -93,5 +93,6 @@ jobs:
9393
tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || github.event.inputs.release_tag }}
9494
files: final-assets/*
9595
generate_release_notes: true
96-
prerelease: false
96+
prerelease: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make_public != 'true' }}
9797
draft: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make_public != 'true' }}
98+
make_latest: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.make_public == 'true') && 'true' || 'false' }}

0 commit comments

Comments
 (0)