From 6ae8738353cfbaabb77a38ad849f31d499c6decd Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 22 Sep 2022 11:40:29 +0500 Subject: [PATCH] ci: add input to make releasing optional --- .github/workflows/desktop.publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop.publish.yml b/.github/workflows/desktop.publish.yml index 1f9cf2321..9d0646674 100644 --- a/.github/workflows/desktop.publish.yml +++ b/.github/workflows/desktop.publish.yml @@ -1,6 +1,13 @@ name: Publish @notesnook/desktop -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + release: + type: boolean + required: true + default: false + description: "Release after successful build?" jobs: build: @@ -91,7 +98,7 @@ jobs: # If the commit is tagged with a version (e.g. "v1.0.0"), # release the app after building - release: true + release: ${{ inputs.release }} env: # macOS notarization API key API_KEY_ID: ${{ secrets.api_key_id }}