Skip to content

Commit

Permalink
ci: add option to publish as draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Mar 1, 2024
1 parent 6c79c66 commit d0f425b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Release

on:
workflow_dispatch:
inputs:
draft-release:
type: boolean
default: false
description: Whether to publish the release as a draft.

permissions:
contents: write
Expand Down Expand Up @@ -45,7 +50,7 @@ jobs:
with:
gh-publish: true
gh-token: ${{ secrets.GITHUB_TOKEN }}
gh-draft-release: false
gh-draft-release: ${{ inputs.draft-release }}
gh-assets: |
[
{
Expand Down

0 comments on commit d0f425b

Please sign in to comment.