-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (37 loc) · 1.07 KB
/
pkgdown.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- master
name: pkgdown
jobs:
pkgdown:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies
run: |
install.packages(c("remotes","devtools", "rmarkdown","tidyverse","DT","here", "pkgdown", "textshaping"))
devtools::install_github("epiforecasts/scoringutils")
remotes::install_deps(dependencies = NA)
shell: Rscript {0}
- name: Install zoltr
run: |
devtools::install_github("reichlab/zoltr")
devtools::install()
shell: Rscript {0}
- name: Build site
run: |
Rscript -e 'pkgdown::build_site()'
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
add: 'docs'
message: "Build pkgdown site"
default_author: github_actions
push: true