Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (32 sloc) 944 Bytes
name: CI
# only build on push to master
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
# use a premade container with R tools, ubuntu 18:04 (ubuntu-latest)
# doesn't have r-cran packages and installing them from apt or from c-ran
# is too slow
container:
image: rocker/tidyverse:latest
steps:
- uses: actions/checkout@v1
- name: install deps
run: |
apt install -y libjpeg-dev libglu1-mesa-dev libglpk-dev libgeos-dev libudunits2-dev libgdal-dev
make deps
- name: compile all Rmd to htmls
run: make
- name: prepare for distribution
run: |
make DESTDIR=./public dist
cp index.html ./public/
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v2.3.1
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
You can’t perform that action at this time.