From 3f03833e9b1a7bdfaff996d42375c8f6b8751e1c Mon Sep 17 00:00:00 2001 From: Micaiah Martin <77340197+mimartin12@users.noreply.github.com> Date: Fri, 15 Jul 2022 13:29:56 +0000 Subject: [PATCH] Add publish options to release workflows (#3112) --- .github/workflows/release-cli.yml | 19 +++++++++++++++++++ .github/workflows/release-desktop.yml | 13 +++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 63a04406e5..c4ca132adf 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -13,6 +13,22 @@ on: - Initial Release - Redeploy - Dry Run + snap_publish: + description: 'Publish to snap store' + required: true + default: true + type: boolean + choco_publish: + description: 'Publish to chocolatey store' + required: true + default: true + type: boolean + npm_publish: + description: 'Publish to npm registry' + required: true + default: true + type: boolean + defaults: run: @@ -93,6 +109,7 @@ jobs: name: Deploy Snap runs-on: ubuntu-20.04 needs: setup + if: inputs.snap_publish env: _PKG_VERSION: ${{ needs.setup.outputs.release-version }} steps: @@ -136,6 +153,7 @@ jobs: name: Deploy Choco runs-on: windows-2019 needs: setup + if: inputs.choco_publish env: _PKG_VERSION: ${{ needs.setup.outputs.release-version }} steps: @@ -184,6 +202,7 @@ jobs: name: Publish NPM runs-on: ubuntu-20.04 needs: setup + if: inputs.npm_publish env: _PKG_VERSION: ${{ needs.setup.outputs.release-version }} steps: diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml index 67bcab7a77..338b84c538 100644 --- a/.github/workflows/release-desktop.yml +++ b/.github/workflows/release-desktop.yml @@ -13,6 +13,17 @@ on: - Initial Release - Redeploy - Dry Run + snap_publish: + description: 'Publish to snap store' + required: true + default: true + type: boolean + choco_publish: + description: 'Publish to chocolatey store' + required: true + default: true + type: boolean + defaults: run: shell: bash @@ -158,6 +169,7 @@ jobs: name: Deploy Snap runs-on: ubuntu-20.04 needs: setup + if: inputs.snap_publish env: _PKG_VERSION: ${{ needs.setup.outputs.release-version }} steps: @@ -205,6 +217,7 @@ jobs: name: Deploy Choco runs-on: windows-2019 needs: setup + if: inputs.choco_publish env: _PKG_VERSION: ${{ needs.setup.outputs.release-version }} steps: