HPC lecture 6 #78
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build site for review | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_site_and_upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Install tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt install -y build-essential pandoc libxml2-dev libssl-dev libcurl4-openssl-dev r-base r-base-dev r-cran-devtools; | |
| sudo apt install -y libharfbuzz-dev libfribidi-dev; | |
| sudo R -e "devtools::install_github('rstudio/rmarkdown')"; | |
| wget https://github.com/mathjax/MathJax/archive/master.zip; | |
| unzip master.zip >/dev/null; | |
| rm master.zip; | |
| export RMARKDOWN_MATHJAX_PATH=$PWD/MathJax-master; | |
| - name: Build site | |
| run: | | |
| R -e "rmarkdown::render_site()"; | |
| tools/headers; | |
| - name: Upload site artifact for review | |
| uses: actions/[email protected] | |
| with: | |
| name: site_for_review | |
| path: _site |