Add publish options to release workflows (#3112)

This commit is contained in:
Micaiah Martin 2022-07-15 13:29:56 +00:00 committed by GitHub
parent b73dc687b8
commit 3f03833e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -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:

View File

@ -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: