From 722bdba09d12c4a534b932415a7fd48b3b3b3a57 Mon Sep 17 00:00:00 2001 From: Hugo Gruson Date: Thu, 8 Jun 2023 19:06:25 +0200 Subject: [PATCH] Clean pkgdown website on releases This avoid keeping obsolete vignettes that have been deleted from the main branch --- examples/pkgdown.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pkgdown.yaml b/examples/pkgdown.yaml index ed7650c73..f662a9b98 100644 --- a/examples/pkgdown.yaml +++ b/examples/pkgdown.yaml @@ -43,6 +43,6 @@ jobs: if: github.event_name != 'pull_request' uses: JamesIves/github-pages-deploy-action@v4.4.1 with: - clean: false + clean: ${{ github.event_name == 'release' }} branch: gh-pages folder: docs