Skip to content

Commit be95e61

Browse files
authored
Merge pull request #8 from MarselScheer/fix-pkgdown
fix pkgdown site deployment (copy paste from dplyr-ci-pipeline)
2 parents 0abaafa + bccf782 commit be95e61

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ jobs:
2222

2323
- uses: r-lib/actions/setup-r-dependencies@v2
2424
with:
25-
extra-packages: pkgdown
25+
extra-packages: any::pkgdown, local::.
2626
needs: website
2727

28-
- name: Deploy package
29-
run: |
30-
git config --local user.name "$GITHUB_ACTOR"
31-
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
32-
Rscript -e "roxygen2::roxygenize()"
33-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
28+
- name: Build site
29+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
30+
shell: Rscript {0}
31+
32+
- name: Deploy to GitHub pages 🚀
33+
if: github.event_name != 'pull_request'
34+
uses: JamesIves/github-pages-deploy-action@v4.5.0
35+
with:
36+
clean: false
37+
branch: gh-pages
38+
folder: docs

0 commit comments

Comments
 (0)