Skip to content

[webchannel] Add GitHub Actions workflow to deploy message generator demo - #80

Open
sampajano wants to merge 1 commit into
google:mainfrom
sampajano:webchannel-gh-pages-deploy
Open

[webchannel] Add GitHub Actions workflow to deploy message generator demo#80
sampajano wants to merge 1 commit into
google:mainfrom
sampajano:webchannel-gh-pages-deploy

Conversation

@sampajano

@sampajano sampajano commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR adds a GitHub Actions workflow (.github/workflows/webchannel-deploy-message-generator.yml) to automatically build and deploy the TypeScript WebChannel Message Generator demo (webchannel/js/demo) to GitHub Pages under the dedicated /webchannel/message_generator/ subpath upon pushing to the main branch.

Architecture & Pipeline Overview

WebChannel Demo GitHub Actions Pipeline

Destination URL (Post-Merge)

Key Details

  • Renamed Source File: Renamed demo.ts to message_generator.ts which compiles to dist/message_generator.js.
  • Subpath Organization: Stages the demo exclusively under _site/webchannel/message_generator/ as the Pages artifact.
  • Trigger: Automatic on push to main branch, with support for manual triggers via workflow_dispatch.
  • Security Compliance: All GitHub Action references are pinned to full commit SHAs complying with zizmor security checks.

Verification & Live Preview

@sampajano
sampajano force-pushed the webchannel-gh-pages-deploy branch from 6a332ce to 9b858de Compare August 11, 2026 23:05
@sampajano
sampajano marked this pull request as ready for review August 11, 2026 23:16
@sampajano
sampajano requested a review from wenbozhu August 11, 2026 23:16
@sampajano
sampajano force-pushed the webchannel-gh-pages-deploy branch from 15a537e to 8126a9b Compare August 11, 2026 23:17
@sampajano

Copy link
Copy Markdown
Collaborator Author

@wenbozhu I configured it so the demo url would be the following (it will work after PR is merged):

https://google.github.io/net_http/webchannel/

@wenbozhu

Copy link
Copy Markdown
Collaborator

url path: /net_http/webchannel/message_generator
js/ts file: s/demo/message_generator/
file path: _site/webchannel/demo/message_generator.js|ts

feel free to suggest a shorter name for message_generator

@sampajano
sampajano force-pushed the webchannel-gh-pages-deploy branch from 8126a9b to 4198fc5 Compare August 13, 2026 23:58
@sampajano sampajano changed the title [webchannel] Add GitHub Actions workflow for GitHub Pages demo deployment [webchannel] Add GitHub Actions workflow to deploy message generator demo Aug 13, 2026
@sampajano

Copy link
Copy Markdown
Collaborator Author

url path: /net_http/webchannel/message_generator js/ts file: s/demo/message_generator/ file path: _site/webchannel/demo/message_generator.js|ts

feel free to suggest a shorter name for message_generator

@wenbozhu Done. Renamed everything to message_generator now. PTAL :)

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