Skip to content

Commit

Permalink
allow manual deploy-with-clean pkgdown deployment (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored Sep 11, 2024
1 parent 89ad94a commit 58e7e69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
clean:
type: boolean
description: 'Clean all files from old site.'
default: false

name: pkgdown

Expand Down Expand Up @@ -43,6 +48,6 @@ jobs:
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
clean: ${{ github.event_name == 'workflow_dispatch' && inputs.clean || false }}
branch: gh-pages
folder: docs

0 comments on commit 58e7e69

Please sign in to comment.