Skip to content

ci: add pkgdown site workflow#20

Merged
flaviobarros merged 2 commits into
masterfrom
ci-pkgdown
Jun 29, 2026
Merged

ci: add pkgdown site workflow#20
flaviobarros merged 2 commits into
masterfrom
ci-pkgdown

Conversation

@flaviobarros

Copy link
Copy Markdown
Owner

This PR adds a pkgdown workflow so the package website can be built from the source documentation and vignettes. This is part of #11 and prepares the site to show the newly added vignettes.

What this adds

  • .github/workflows/pkgdown.yaml — builds and deploys the pkgdown site

Behavior

  • On push to master: builds the site and deploys to the gh-pages branch
  • On pull request: builds the site to verify it compiles (no deploy)

Deployment note

The repository currently has a docs/ directory on master with a previously generated site. After this PR merges, the site will be served from the gh-pages branch instead. The existing docs/ directory can be removed in a follow-up PR once gh-pages is confirmed working.

Verification

  • No R code changes
  • Workflow uses r-lib/actions/setup-r@v2, r-lib/actions/setup-r-dependencies@v2, and pkgdown::build_site_github_pages()

Build pkgdown site on push to master and pull requests.
Deploys to gh-pages branch via GitHub Actions.
The existing docs/ contained a manually-built site that blocked
pkgdown::build_site_github_pages(). Removed it so pkgdown can
build from scratch and deploy to gh-pages branch.
@flaviobarros flaviobarros merged commit 9badc44 into master Jun 29, 2026
2 checks passed
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