Skip to content

Commit bf51dad

Browse files
committed
updated pkgdown workflow
1 parent 785e5f2 commit bf51dad

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,25 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17-
- uses: r-lib/actions/setup-pandoc@v1
17+
- uses: r-lib/actions/setup-pandoc@v2
1818

19-
- uses: r-lib/actions/setup-r@v1
19+
- uses: r-lib/actions/setup-r@v2
2020
with:
2121
use-public-rspm: true
2222

23-
- uses: r-lib/actions/setup-r-dependencies@v1
23+
- 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 "[email protected]"
32-
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/[email protected]
35+
with:
36+
clean: false
37+
branch: gh-pages
38+
folder: docs

0 commit comments

Comments
 (0)