Skip to content

Commit

Permalink
CI: update pkgdown to latest recommendend workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-kats committed Sep 8, 2023
1 parent dc26ae1 commit 23db35b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@ jobs:
with:
extra-packages: pkgdown

- name: Deploy package
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
git-config-name: ${{ github.actor }}
git-config-email: ${{ github.actor }}@users.noreply.github.com

0 comments on commit 23db35b

Please sign in to comment.