π Merge pull request #28 from cnr-ibba/devel #14
This file contains 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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [master] | |
release: | |
types: [published] | |
workflow_dispatch: | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
SMARTER_API_USERNAME: ${{ secrets.SMARTER_API_USERNAME }} | |
SMARTER_API_PASSWORD: ${{ secrets.SMARTER_API_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies on Linux | |
run: sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev | |
libgdal-dev libudunits2-dev libharfbuzz-dev libfribidi-dev | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-renv@v2 | |
with: | |
cache-version: 1 | |
profile: '"dev"' | |
- name: Build site | |
run: pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE) | |
shell: Rscript {0} | |
- name: Deploy to GitHub pages π | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/[email protected] | |
with: | |
clean: false | |
branch: gh-pages | |
folder: docs |