Skip to content

Commit

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

name: pkgdown

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
Expand All @@ -19,6 +26,8 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand All @@ -41,6 +50,6 @@ jobs:
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
clean: false
clean: ${{ github.event_name == 'workflow_dispatch' && inputs.clean || false }}
branch: gh-pages
folder: docs

0 comments on commit ed48da1

Please sign in to comment.