Skip to content

Commit

Permalink
add grass install and demo location download to pkgdown build
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpawley committed Jan 1, 2025
1 parent 78c8737 commit eee71a5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,27 @@ jobs:
with:
use-public-rspm: true

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y grass-dev libgdal-dev libudunits2-dev libharfbuzz-dev libfribidi-dev
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Download test dataset
run: |
wget https://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.zip -O /tmp/nc_basic_spm_grass7.zip
unzip /tmp/nc_basic_spm_grass7.zip -d /tmp/grassdb
rm /tmp/nc_basic_spm_grass7.zip
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, run_dont_run = TRUE)
run: |
gisBase <- system2("grass", "--config path", stdout = TRUE)
loc <- rgrass::initGRASS(gisBase = gisBase, gisDbase = "/tmp/grassdb", location = "nc_basic_spm_grass7", mapset = "PERMANENT", override = TRUE)
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, run_dont_run = TRUE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
Expand Down

0 comments on commit eee71a5

Please # to comment.