Skip to content

Commit

Permalink
Add option for manual deployment of pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AronHetLam committed Jan 21, 2024
1 parent 5143ac6 commit f58ffb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
branches:
- "master"
workflow_dispatch:
inputs:
deploy-pages:
type: boolean
description: Deploy pages
default: false

jobs:
get-envs:
Expand Down Expand Up @@ -110,7 +115,7 @@ jobs:
path: ./gh-pages/_site

deploy:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
if: (github.ref == 'refs/heads/master' && github.event_name == 'push') || github.event.inputs.deploy-pages == 'true'
runs-on: ubuntu-latest
needs: build-gh-pages
permissions:
Expand Down

0 comments on commit f58ffb7

Please sign in to comment.