Skip to content

Migrate PR preview deploys from Netlify to GitHub Pages#109

Merged
tortmayr merged 1 commit into
masterfrom
migrate-pr-previews-to-gh-pages
Jun 2, 2026
Merged

Migrate PR preview deploys from Netlify to GitHub Pages#109
tortmayr merged 1 commit into
masterfrom
migrate-pr-previews-to-gh-pages

Conversation

@tortmayr
Copy link
Copy Markdown
Contributor

@tortmayr tortmayr commented Jun 2, 2026

Netlify's GitHub integration stopped posting preview deploys. Replace it with a GitHub Pages based PR preview, mirroring the secure split used in glsp-client and theia-website:

  • pr-preview-build: builds the Hugo site for a PR in an untrusted context (read-only token, no secrets) and uploads it as an artifact
  • pr-preview-deploy: deploys the artifact to the gh-pages branch from a trusted workflow_run context and comments the preview URL on the PR
  • pr-preview-remove: removes the preview when the PR is closed
  • gh-pages-cleanup: squashes gh-pages history monthly

Remove the now-unused netlify.toml.

Netlify's GitHub integration stopped posting preview deploys. Replace it
with a GitHub Pages based PR preview, mirroring the secure split used in
glsp-client and theia-website:

- pr-preview-build: builds the Hugo site for a PR in an untrusted context
  (read-only token, no secrets) and uploads it as an artifact
- pr-preview-deploy: deploys the artifact to the gh-pages branch from a
  trusted workflow_run context and comments the preview URL on the PR
- pr-preview-remove: removes the preview when the PR is closed
- gh-pages-cleanup: squashes gh-pages history monthly

Remove the now-unused netlify.toml.
@tortmayr tortmayr merged commit 24c8155 into master Jun 2, 2026
2 checks passed
@tortmayr tortmayr deleted the migrate-pr-previews-to-gh-pages branch June 2, 2026 17:06
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

🌐 Website preview: Removed (PR closed).

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