From 58e7e69e47f94052a90bf20ab9ed1504c54aba63 Mon Sep 17 00:00:00 2001 From: CJ Yetman Date: Wed, 11 Sep 2024 15:37:17 +0200 Subject: [PATCH] allow manual deploy-with-clean pkgdown deployment (#515) --- .github/workflows/pkgdown.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 88099b30..9fc04138 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -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 @@ -43,6 +48,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