-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.12 KB
/
website.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
name: Website
on:
push:
jobs:
build:
runs-on: ubuntu-latest
container: rocker/r2u:latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
name: Cache R packages
id: cache-r-packages
with:
path: '/usr/local/lib/R/site-library/'
key: ${{ runner.os }}
- name: Install netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: USCCANA/netdiffuseR
path: netdiffuseR
- name: Install netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit != 'true'
run: |
install2.r igraph networkDynamic statnet Rcpp MatchIt \
SparseM viridisLite RcppArmadillo rmarkdown knitr microbenchmark
R CMD INSTALL netdiffuseR
rm -rf netdiffuseR
- name: Install Quarto
run: |
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.6.37/quarto-1.6.37-linux-amd64.deb
dpkg -i quarto-1.6.37-linux-amd64.deb
- name: Build website
run: |
quarto render .