Skip to content

Commit

Permalink
allow manual deploy-with-clean pkgdown deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored Aug 27, 2024
1 parent 8310f6a commit 9a9b116
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
clean:
type: boolean
description: 'Clean all files from old site.'
default: false

env:
CLEAN: ${{ github.event_name == 'workflow_dispatch' && inputs.clean || 'false' }}

name: pkgdown.yml

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

0 comments on commit 9a9b116

Please sign in to comment.