Skip to content

Commit 8a19bdc

Browse files
Add pkgdown workflow
1 parent d29a7d0 commit 8a19bdc

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/pkgdown.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: pkgdown
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
release:
7+
types: [published]
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
pkgdown:
16+
runs-on: ubuntu-latest
17+
environment:
18+
name: github-pages
19+
url: ${{ steps.deployment.outputs.page_url }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: r-lib/actions/setup-r@v2
23+
with:
24+
use-public-rspm: true
25+
- uses: r-lib/actions/setup-r-dependencies@v2
26+
with:
27+
extra-packages: any::pkgdown
28+
needs: website
29+
- name: Build site
30+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE)
31+
shell: Rscript {0}
32+
- uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: docs
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)