Skip to content

Only cache netdiffuseR #15

Only cache netdiffuseR

Only cache netdiffuseR #15

Workflow file for this run

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/lib/R/site-library/
key: ${{ runner.os }}
- name: Download netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: USCCANA/netdiffuseR
path: netdiffuseR
- name: Install dependencies
run: |
install2.r igraph networkDynamic statnet Rcpp MatchIt \
SparseM viridisLite RcppArmadillo rmarkdown knitr microbenchmark
- name: Install netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit != 'true'
run: |
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 .
- 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