Skip to content

GitHub Pages deploy workflow for backward-compatible dist URLs#9

Merged
felipefdl merged 2 commits into
feat/monorepo-v2-refactorfrom
chore/github-pages-deploy
Apr 11, 2026
Merged

GitHub Pages deploy workflow for backward-compatible dist URLs#9
felipefdl merged 2 commits into
feat/monorepo-v2-refactorfrom
chore/github-pages-deploy

Conversation

@felipefdl
Copy link
Copy Markdown
Member

Summary

  • Adds a GitHub Actions workflow that deploys to GitHub Pages on push to master
  • Copies packages/js/dist/ files to /dist/ at the site root, preserving the old URL structure
  • Also copies packages/js/examples/ to /examples/ for the same reason

After merging the monorepo PRs (#7 and #8), the dist files move from the repo root to packages/js/dist/. Without this workflow, the existing GitHub Pages URLs (/dist/custom-widget.min.js, /dist/custom-widget.min.css, etc.) would break.

Required manual step

The repo Pages source must be switched from "Deploy from a branch" (legacy) to "GitHub Actions" in Settings > Pages > Build and deployment > Source. The workflow handles everything else.

Test plan

  • Switch Pages source to "GitHub Actions" in repo settings
  • Merge PRs Feat/monorepo react sdk #7 and feat: monorepo v2 refactor with unified build config #8 into master
  • Verify the deploy workflow runs and succeeds
  • Confirm https://tago-io.github.io/custom-widget/dist/custom-widget.min.js returns the built SDK
  • Confirm https://tago-io.github.io/custom-widget/dist/custom-widget.min.css returns the stylesheet
  • Confirm https://tago-io.github.io/custom-widget/examples/basic-widget.html loads correctly

Adds a workflow that builds the monorepo and copies the JS SDK dist
files to the same paths served by the old legacy Pages setup, keeping
/dist/custom-widget.min.js and /examples/ URLs intact.

Requires switching the repo Pages source from "legacy" to "GitHub
Actions" in Settings > Pages.
@felipefdl felipefdl merged commit 4fa748f into feat/monorepo-v2-refactor Apr 11, 2026
1 check failed
@felipefdl felipefdl deleted the chore/github-pages-deploy branch April 11, 2026 22:07
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