Skip to content

Add Pages workflow to build and deploy pkgdown on main - #48

Merged
maRce10 merged 2 commits into
mainfrom
copilot/add-github-actions-workflow
Aug 21, 2026
Merged

Add Pages workflow to build and deploy pkgdown on main#48
maRce10 merged 2 commits into
mainfrom
copilot/add-github-actions-workflow

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The repository lacked a GitHub Pages deployment workflow, so pkgdown site publishing was not being triggered. This change introduces a dedicated Pages workflow that builds the site and deploys it via GitHub Actions.

  • Workflow introduction

    • Adds .github/workflows/pages.yml as the Pages pipeline entrypoint.
    • Enables triggers on push to main and workflow_dispatch.
  • Pages deployment contract

    • Sets required Pages permissions: contents: read, pages: write, id-token: write.
    • Adds workflow concurrency (group: "pages", cancel-in-progress: true) to serialize deployments.
  • Build and publish flow

    • build-site job provisions R/Pandoc, installs website deps, and builds pkgdown output to docs.
    • Uploads docs as the Pages artifact.
    • deploy job publishes with actions/deploy-pages@v4 under the github-pages environment.
jobs:
  build-site:
    steps:
      - name: Build pkgdown site
        run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
        shell: Rscript {0}
  deploy:
    needs: build-site
    steps:
      - uses: actions/deploy-pages@v4

Co-authored-by: maRce10 <13245502+maRce10@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Actions workflow for GitHub Pages deployment Add Pages workflow to build and deploy pkgdown on main Aug 21, 2026
Copilot AI requested a review from maRce10 August 21, 2026 00:47
@maRce10
maRce10 marked this pull request as ready for review August 21, 2026 01:35
@maRce10
maRce10 merged commit b44a1f9 into main Aug 21, 2026
14 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.

2 participants