pkgdown site: temporarily fix pkgdown at 2.0.9 to restore visuals #423
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
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
workflow_dispatch: | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-22.04 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
SAGANGV: 0.0.7 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
extra-repositories: https://geocompr.r-universe.dev | |
- name: Dynamically set QGIS_PLUGINPATH environment var (available to next steps) | |
run: | | |
# Dynamically set QGIS_PLUGINPATH environment var (available to next steps) | |
mkdir ../extra_plugins | |
echo "QGIS_PLUGINPATH=$(pwd)/../extra_plugins" >> $GITHUB_ENV | |
- name: Install QGIS, GRASS, SAGA and the SAGA NextGen plugin (Ubuntu) | |
run: | | |
# Install QGIS, GRASS, SAGA and the SAGA NextGen plugin (Ubuntu) | |
sudo wget -qO /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] https://qgis.org/ubuntu `lsb_release -c -s` main" > /etc/apt/sources.list.d/qgis.list' | |
sudo apt-get update | |
sudo apt-get install -y qgis qgis-plugin-grass saga | |
wget -qO ../sagang_plugin.zip https://plugins.qgis.org/plugins/processing_saga_nextgen/version/$SAGANGV/download/ | |
unzip -q ../sagang_plugin.zip -d ../extra_plugins | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: local::., [email protected] | |
needs: website | |
- name: Deploy package | |
if: github.event_name != 'pull_request' | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' | |
- name: Build site without deploying | |
if: github.event_name == 'pull_request' | |
run: | | |
Rscript -e 'pkgdown::build_site(preview = FALSE, install = FALSE)' |