Add manual release button

This commit is contained in:
folex 2021-05-28 19:04:33 +03:00
parent 58132b8d8b
commit 248f2b5902

View File

@ -9,6 +9,11 @@ on:
- "main" - "main"
workflow_dispatch: workflow_dispatch:
inputs:
draft:
description: "Whether to create draft or actual release. 'false' by default, put 'true' to make draft release"
required: false
default: false
jobs: jobs:
release: release:
@ -89,6 +94,6 @@ jobs:
${{ env.JAR }} ${{ env.JAR }}
body: | body: |
[${{ env.VERSION }} @ NPM registry](https://www.npmjs.com/package/${{ env.PKG_NAME }}/v/${{ env.VERSION }}) [${{ env.VERSION }} @ NPM registry](https://www.npmjs.com/package/${{ env.PKG_NAME }}/v/${{ env.VERSION }})
draft: true draft: ${{ github.event.inputs.draft }}
prerelease: false prerelease: false
repo_token: "${{ secrets.GITHUB_TOKEN }}" repo_token: "${{ secrets.GITHUB_TOKEN }}"