From 8a1949c090a029e2a0f5dc2ff996bc71f97ef3ba Mon Sep 17 00:00:00 2001 From: Eliot McIntire Date: Fri, 11 Sep 2026 21:33:51 -0700 Subject: [PATCH] ci: publish a pkgdown site for this module Thin caller for the shared pkgdown-module reusable workflow, which renders fireSense_SpreadPredict.Rmd as a pkgdown article via SpaDES.core::moduleRmdToVignette(). Builds on pull requests to development and deploys to gh-pages on push. Same caller already running on fireSense_SpreadFit (#21). See PredictiveEcology/SpaDES-modules#40. --- .github/workflows/pkgdown-module.yaml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pkgdown-module.yaml diff --git a/.github/workflows/pkgdown-module.yaml b/.github/workflows/pkgdown-module.yaml new file mode 100644 index 0000000..4eeca22 --- /dev/null +++ b/.github/workflows/pkgdown-module.yaml @@ -0,0 +1,30 @@ +## Thin caller: build this module's pkgdown site and publish it with GitHub Pages. +## The job lives in PredictiveEcology/actions, so its setup and pins move once: +## https://github.com/PredictiveEcology/actions/blob/main/.github/workflows/pkgdown-module.yaml +## Background: PredictiveEcology/SpaDES-modules#40. +## +## Publishes from `development` (the pilot's choice; which branch should publish +## is an open question on #40). Pull requests build the site without deploying. +## The site is at https://predictiveecology.github.io/fireSense_SpreadPredict/ until a +## custom domain is set with the `url` input. + +name: pkgdown-module + +on: + push: + branches: [development] + pull_request: + branches: [development] + workflow_dispatch: + +jobs: + pkgdown-module: + ## The called workflow's deploy job pushes to gh-pages. A called workflow can + ## only reduce what the caller grants, never widen it, so the write scope has + ## to be granted here. + permissions: + contents: write + uses: PredictiveEcology/actions/.github/workflows/pkgdown-module.yaml@main + with: + module: fireSense_SpreadPredict +