Skip to content

Host dist/examples on GitHub Pages with PR preview deployments#18

Merged
daedeloth merged 2 commits intomasterfrom
copilot/host-examples-on-github-pages
Feb 10, 2026
Merged

Host dist/examples on GitHub Pages with PR preview deployments#18
daedeloth merged 2 commits intomasterfrom
copilot/host-examples-on-github-pages

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Deploy examples to GitHub Pages and provide per-PR preview URLs.

GitHub Pages deployment (.github/workflows/deploy.yml)

  • Builds and deploys dist/ to GitHub Pages on push to master
  • Uses official actions/deploy-pages with proper concurrency controls

PR preview deployment (.github/workflows/deploy-pr.yml)

  • Builds and deploys to pr/<number>/ subfolder on gh-pages branch via peaceiris/actions-gh-pages
  • Posts/updates a PR comment with direct links to preview examples
  • Per-PR concurrency group cancels stale deployments

README update

  • Replaced stale dev.catlab.eu links with GitHub Pages URLs
  • Added features, installation, and development sections
  • Documented PR preview URL pattern: https://catlabinteractive.github.io/easelbone/pr/<PR_NUMBER>/examples/
Original prompt

This section details on the original issue you should resolve

<issue_title>Host the dist/examples folder on github pages</issue_title>
<issue_description>- Host the examples / test page on github pages, make sure that it has access to all required scripts

  • For each pull request, make sure the examples / test pages are deployed to a subfolder references the PR (so that the PR can be tested)
  • Update the readme, add relevant data of the library and add links to the examples on githpub pages</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Add deploy.yml workflow to deploy dist/ to GitHub Pages on push to master
- Add deploy-pr.yml workflow to deploy PR previews to pr/<number>/ subfolder
- Update README with project description, features, examples links, and dev instructions

Co-authored-by: daedeloth <1168599+daedeloth@users.noreply.github.com>
Copilot AI changed the title [WIP] Host examples folder on GitHub Pages Host dist/examples on GitHub Pages with PR preview deployments Feb 10, 2026
Copilot AI requested a review from daedeloth February 10, 2026 09:11
@github-actions
Copy link

📦 PR Preview deployed!

Examples are available at:

@daedeloth daedeloth marked this pull request as ready for review February 10, 2026 09:15
@daedeloth daedeloth merged commit 26bd714 into master Feb 10, 2026
1 check 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.

Host the dist/examples folder on github pages

2 participants