-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.33 KB
/
website.yaml
File metadata and controls
65 lines (53 loc) · 1.33 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Website
on:
push:
branches: [ main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::igraph
any::networkDynamic
any::statnet
any::Rcpp
any::MatchIt
any::remotes
any::SparseM
any::viridisLite
any::RcppArmadillo
any::rmarkdown
any::knitr
any::microbenchmark
- name: Install netdiffuseR
run: |
Rscript -e 'remotes::install_github("USCCANA/netdiffuseR")'
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Build website
run: |
quarto render .
- name: Upload website
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy website
uses: actions/deploy-pages@v4