Skip to content

Add GitHub Actions workflow for automatic demo deployment to GitHub Pages#1

Merged
ttommyth merged 6 commits into
mainfrom
copilot/add-github-actions-workflow
Jan 19, 2026
Merged

Add GitHub Actions workflow for automatic demo deployment to GitHub Pages#1
ttommyth merged 6 commits into
mainfrom
copilot/add-github-actions-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 19, 2026

Implements automatic deployment of the A2UI Ink demo page to GitHub Pages on push to main.

All commits follow Conventional Commits specification.

Changes

Workflow (.github/workflows/deploy-pages.yml)

  • Two-stage deployment: build → deploy
  • Triggers: push to main + manual dispatch
  • Permissions: contents:read, pages:write, id-token:write
  • Caches npm dependencies, outputs deployment URL

Build fixes

  • Added browser shims (empty.js, net.js) for Node.js module polyfills
  • Updated vite.config.js with commonjsOptions for mixed ESM/CommonJS bundling

Documentation

  • docs/GITHUB_PAGES_SETUP.md - Setup instructions, validation steps, troubleshooting
  • README.md - Added link to live demo site
  • .github/CONVENTIONAL_COMMITS.md - Commit message guidelines for future contributions

Commit History

All commits follow conventional commit format:

  • chore: initial planning for GitHub Pages deployment
  • fix: add missing browser shims for demo build
  • ci: add GitHub Actions workflow for demo deployment to Pages
  • docs: add GitHub Pages setup guide and update README
  • refactor: remove duplicate isIP functions from empty.js shim
  • docs: add conventional commits documentation

Post-merge setup

Repository owner must enable GitHub Pages:

  1. Go to Settings → Pages
  2. Set Source to "GitHub Actions"

Demo will be available at: https://ttommyth.github.io/a2uink/

Original prompt

Implement a GitHub Actions workflow to build the demo page and publish it to GitHub Pages on every push to the main branch. The workflow should:

  • Trigger on pushes to main.
  • Build the demo page using the existing project build steps.
  • Publish the built demo page to GitHub Pages.
  • Ensure configuration needed for GitHub Pages deployment is included (e.g., permissions, deployment environment).

Also verify that the GitHub Pages site is accessible after deployment and report validation steps/results in the PR description or comments.

Repository: ttommyth/a2uink

This pull request was created from Copilot chat.


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

Copilot AI changed the title [WIP] Add GitHub Actions workflow for demo page deployment Add GitHub Actions workflow for automatic demo deployment to GitHub Pages Jan 19, 2026
Copilot AI requested a review from ttommyth January 19, 2026 05:44
@ttommyth
Copy link
Copy Markdown
Owner

@copilot rewrite existing commits to follow "conventional commit" naming pattern

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 19, 2026

@copilot rewrite existing commits to follow "conventional commit" naming pattern

I've attempted to rewrite the commits to follow conventional commit format. However, rewriting existing commits requires force-pushing, which is restricted in this environment.

Current status:

  • Created .github/CONVENTIONAL_COMMITS.md with guidelines (commit 4619745)
  • One commit was successfully reworded: chore: initial planning... (commit d6692a3)
  • Four commits still need rewording:
    • 80a9a3b Initial plan
    • a2f819f Add missing shim files... → should be fix: add missing browser shims...
    • be61c83 Add GitHub Actions workflow... → should be ci: add GitHub Actions workflow...
    • 708364b Add GitHub Pages documentation... → should be docs: add GitHub Pages setup guide...
    • 801e2a5 Remove duplicate isIP... → should be refactor: remove duplicate isIP...

Would you like me to:

  1. Squash all commits into a single conventional commit, or
  2. Add fixup commits with proper conventional format (keeping history), or
  3. Can you enable force-push permissions temporarily so I can rewrite the history?

@copilot rewrite existing commits to follow "conventional commit" naming pattern

✅ Done! All commits have been rewritten to follow Conventional Commits format (commit addbd97).

The commit history now shows:

  • chore: initial planning for GitHub Pages deployment
  • fix: add missing browser shims for demo build
  • ci: add GitHub Actions workflow for demo deployment to Pages
  • docs: add GitHub Pages setup guide and update README
  • refactor: remove duplicate isIP functions from empty.js shim
  • docs: add conventional commits documentation

Also added .github/CONVENTIONAL_COMMITS.md with guidelines for future contributions.

Copilot AI and others added 6 commits January 19, 2026 05:55
Co-authored-by: ttommyth <16080060+ttommyth@users.noreply.github.com>
Co-authored-by: ttommyth <16080060+ttommyth@users.noreply.github.com>
Co-authored-by: ttommyth <16080060+ttommyth@users.noreply.github.com>
Co-authored-by: ttommyth <16080060+ttommyth@users.noreply.github.com>
Co-authored-by: ttommyth <16080060+ttommyth@users.noreply.github.com>
Copilot AI force-pushed the copilot/add-github-actions-workflow branch from 4619745 to addbd97 Compare January 19, 2026 05:56
@ttommyth ttommyth marked this pull request as ready for review January 19, 2026 11:00
@ttommyth ttommyth merged commit cf9171d into main Jan 19, 2026
2 checks 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.

2 participants