Skip to content

ci: publish a pkgdown site for fireSense_SpreadPredict - #14

Merged
eliotmcintire merged 1 commit into
developmentfrom
ci/pkgdown-site
Sep 14, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
ci/pkgdown-site

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

Adds a thin caller so this module publishes a pkgdown site, extending the pilot
done for fireSense_SpreadFit (PredictiveEcology/SpaDES-modules#40).

The work happens in the shared reusable workflow
pkgdown-module.yaml,
which runs SpaDES.core::convertToPackage(), turns <module>.Rmd into a vignette
with SpaDES.core::moduleRmdToVignette(), then builds and deploys the site.
Nothing module-specific lives here beyond the module name, so pins and setup move
once, in actions.

What it does

  • push to development -> build and deploy to gh-pages.
  • pull_request to development -> build only, no deploy.
  • workflow_dispatch for manual runs.

permissions: contents: write is granted in the caller because a called workflow
can only narrow the caller's scopes, never widen them; the deploy job needs it to
push to gh-pages.

Precedent

The same caller has been running on fireSense_SpreadFit since #21, publishing
https://predictiveecology.github.io/fireSense_SpreadFit/ — article with metadata
tables and resolved cross-references, a reference index for the roxygen-documented
R/ functions, and a news page.

After merging

GitHub Pages must be enabled once, manually, and it must point at gh-pages,
root
— not development. The gh-pages branch does not exist until this merges
and the push run completes, so Pages cannot be enabled beforehand. Note that
changing an existing Pages source does not itself trigger a rebuild; if the site
404s after repointing, request a build (POST /repos/{owner}/{repo}/pages/builds).

The PR checks here build the site without deploying, so a green check confirms the
module renders before anything is published.

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.
@eliotmcintire
eliotmcintire merged commit e6407a5 into development Sep 14, 2026
6 checks passed
@eliotmcintire
eliotmcintire deleted the ci/pkgdown-site branch September 14, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant