Skip to content

Commit ceef00e

Browse files
committed
ci: allow manual deployment to GitHub Pages via workflow inputs
1 parent 9b393ec commit ceef00e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313

1414
# Allows you to run this workflow manually from the Actions tab
1515
workflow_dispatch:
16+
inputs:
17+
deploy:
18+
description: "Deploy to GitHub Pages"
19+
type: boolean
20+
default: false
1621

1722
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1823
permissions:
@@ -55,7 +60,7 @@ jobs:
5560
name: github-pages
5661
url: ${{ steps.deployment.outputs.page_url }}
5762
needs: build
58-
if: success() && startsWith( github.ref, 'refs/tags/v')
63+
if: success() && (startsWith( github.ref, 'refs/tags/v') || inputs.deploy == true)
5964
runs-on: ubuntu-latest
6065
name: Deploy
6166
steps:

0 commit comments

Comments
 (0)