-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.3 KB
/
deploy.yml
File metadata and controls
44 lines (38 loc) · 1.3 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
name: deploy workshop
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: rocker/verse:latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Install apt-get packages
run: |-
sudo apt-get update
sudo apt-get install -y pandoc libudunits2-0 libudunits2-dev
sudo apt-get install -y rsync tree libproj-dev libgeos-dev
sudo apt-get install -y libgdal-dev r-cran-ncdf4 r-cran-remotes r-cran-sf
- name: Install R packages
run: |
Rscript -e "install.packages('remotes', repos = 'https://muug.ca/mirror/cran/')"
Rscript -e "remotes::install_deps()"
- name: Build presentation
run: |
icons::download_fontawesome()
rmarkdown::render("index.Rmd", "all")
shell: Rscript {0}
- name: Build data and script
run: |
knitr::purl("index.Rmd", "script.R")
zip("data_and_script.zip", c("data", "script.R"))
shell: Rscript {0}
- name: Deploy workshop
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_TOKEN }}
publish_dir: .
exclude_assets: '.github,.gitignore,DESCRIPTION,makefile'