Skip to content

build

build #1431

Workflow file for this run

on:
push:
branches:
- main
- master
schedule:
- cron: "0 0 * * *"
name: build
jobs:
render:
name: build
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: 'https://tbep-tech.r-universe.dev'
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-tinytex@v2
- name: Setup Ubuntu dependencies
run: |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::dplyr
any::knitr
any::rmarkdown
any::ggmap
any::ggrepel
any::here
any::tibble
any::ggplot2
any::patchwork
any::Hmisc
any::tinytex
any::pdftools
url::https://cran.r-project.org/src/contrib/Archive/git2r/git2r_0.33.0.tar.gz
tbeptools
- name: Build report card
run: Rscript -e 'source("build.R")'
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add -A
git commit -m 'Re-build data' || echo "No changes to commit"
git push origin || echo "No changes to commit"