Skip to content

Switch GitHub Pages deployment to official actions/deploy-pages - #8

Draft
douglase with Copilot wants to merge 6 commits into
mainfrom
copilot/adapt-template-for-latest-upstream
Draft

douglase with Copilot wants to merge 6 commits into
mainfrom
copilot/adapt-template-for-latest-upstream

Conversation

Copilot AI commented May 7, 2026

Copy link
Copy Markdown

Replaces the third-party peaceiris/actions-gh-pages action with GitHub's own deployment stack (actions/upload-pages-artifact + actions/deploy-pages).

Changes

  • .github/workflows/ci.yml

    • Add permissions: pages: write + id-token: write at workflow level
    • Split into build and deploy jobs (required by the official pattern)
    • Replace peaceiris/actions-gh-pages@v3 with actions/upload-pages-artifact@v3 (uploads ./dist) and actions/deploy-pages@v4 (with github-pages environment so the deployment URL surfaces in the GitHub UI)
  • guides/CI-setup.md

    • Pages source instruction: "gh-pages branch" → GitHub Actions
    • Remove the "enable Read and write permissions for GITHUB_TOKEN" step (not needed with id-token)
    • Update action reference accordingly

⚠️ Migration note for existing users

Settings → Pages → Source must be changed from "Deploy from a branch" to "GitHub Actions" or the deploy job will fail.

douglase added 4 commits May 6, 2026 22:50
Added steps to make deploy.sh and sync_tex.sh executable
Fix the order of commands to make sync_tex.sh executable before running it.

This branch has not been deployed

No deployments
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