Skip to content

Migrate PR previews to the shared glsp-previews repository - #111

Merged
tortmayr merged 1 commit into
masterfrom
migrate-pr-previews-to-previews-repo
Sep 16, 2026
Merged

tortmayr merged 1 commit into
masterfrom
migrate-pr-previews-to-previews-repo

Conversation

@tortmayr

Copy link
Copy Markdown
Contributor

Previews now live in eclipse-glsp/glsp-previews next to the glsp-core demos, so no deployment flow of this repository needs write access to it anymore. The build stays in an untrusted context and only the deploy holds the token, which is scoped to the previews repository alone.

  • pr-preview-build: build with the previews repository as Hugo base URL and drop the PR metadata artifact; the deploy workflow resolves the pull request itself, which also covers forks
  • pr-preview-deploy: push to the shared previews branch and track the deployment in a sticky comment that reports the pending, failed and deployed state next to the live website
  • pr-preview-remove: remove the preview from the shared branch instead of the local gh-pages branch
  • Skip previews for changes that cannot affect the built website (README, LICENSE, .vscode, .devcontainer)
  • Remove gh-pages-cleanup; the previews repository prunes stale previews and squashes its history for all publishing repositories
  • Document both deployment flows in the README

Previews now live in eclipse-glsp/glsp-previews next to the glsp-core
demos, so no deployment flow of this repository needs write access to it
anymore. The build stays in an untrusted context and only the deploy
holds the token, which is scoped to the previews repository alone.

- pr-preview-build: build with the previews repository as Hugo base URL
  and drop the PR metadata artifact; the deploy workflow resolves the
  pull request itself, which also covers forks
- pr-preview-deploy: push to the shared previews branch and track the
  deployment in a sticky comment that reports the pending, failed and
  deployed state next to the live website
- pr-preview-remove: remove the preview from the shared branch instead
  of the local gh-pages branch
- Skip previews for changes that cannot affect the built website
  (README, LICENSE, .vscode, .devcontainer)
- Remove gh-pages-cleanup; the previews repository prunes stale previews
  and squashes its history for all publishing repositories
- Document both deployment flows in the README
@tortmayr
tortmayr merged commit 9d46137 into master Sep 16, 2026
2 checks passed
@tortmayr
tortmayr deleted the migrate-pr-previews-to-previews-repo branch September 16, 2026 07:52
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