File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed
Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy website
2+ on :
3+ push :
4+ branches : ["main"]
5+ workflow_dispatch :
6+
7+ env :
8+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9+
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
18+
19+ jobs :
20+ build :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Checkout main
24+ uses : actions/checkout@v5
25+ with :
26+ ref : main
27+
28+ - name : Setup pandoc
29+ uses : r-lib/actions/setup-pandoc@v2
30+
31+ - name : Setup R
32+ uses : r-lib/actions/setup-r@v2
33+ with :
34+ use-public-rspm : true
35+
36+ - name : Install dependencies
37+ run : |
38+ install.packages(c("remotes", "pkgdown", "knitr", "rmarkdown"))
39+ remotes::install_deps(dependencies = TRUE)
40+ shell : Rscript {0}
41+
42+ - name : Build pkgdown site
43+ run : pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE)
44+ shell : Rscript {0}
45+
46+ - name : Setup Pages
47+ uses : actions/configure-pages@v5
48+
49+ - name : Upload artifact
50+ uses : actions/upload-pages-artifact@v4
51+ with :
52+ path : ./docs
53+
54+ deploy :
55+ environment :
56+ name : github-pages
57+ url : ${{ steps.deployment.outputs.page_url }}
58+ runs-on : ubuntu-latest
59+ needs : build
60+ steps :
61+ - name : Deploy to GitHub Pages
62+ id : deployment
63+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments