feat: deploy Gen2 docs website to stable URL from main#6086
feat: deploy Gen2 docs website to stable URL from main#6086rubencarvalho merged 4 commits intomainfrom
Conversation
|
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
| run: yarn build | ||
|
|
||
| - name: Build 2nd-gen Storybook | ||
| run: yarn workspace @spectrum-web-components/2nd-gen storybook:build |
There was a problem hiding this comment.
minor nit: Why are you not calling yarn workspace @adobe/spectrum-wc storybook:build directly. The above is adding an extra hop.
Description
Adds a new GitHub Actions workflow (
publish-2ndgen-docs.yml) that builds and deploys the 2nd-gen Storybook documentation to a stable Azure Blob Storage URL on every push tomain. Usesazcopy syncwith--delete-destination=trueto keep the deployed files clean across deploys.The docs are published to:
https://swcpreviews.z13.web.core.windows.net/docs/Note
Future: When we're ready for a custom domain, we can add an Azure CDN endpoint in front of the blob storage origin and map a domain to it. No workflow changes needed: the deploy target stays the same.
Motivation and context
PR previews already deploy 2nd-gen Storybook to per-PR paths in Azure, but there is no persistent deployment of the 2nd-gen docs from
main. This workflow gives us a stable URL that is always up to date with the latest merged changes, reusing the existing Azure storage and authentication infrastructure.Related issue(s)
Screenshots (if appropriate)
N/A — CI workflow only.
Author's checklist
I have reviewed at the Accessibility Practices for this feature, see: Aria PracticesN/AI have added automated tests to cover my changes.N/A — CI config onlyI have included a well-written changeset if my change needs to be published.No changeset needed — no package changesReviewer's checklist
Includes thoughtfully written changesetN/AAutomated tests cover all use casesN/AValidated on all supported browsersN/AAll VRTs are approvedN/AManual review test cases
Verify workflow ran on push to branch
https://swcpreviews.z13.web.core.windows.net/docs/mainpushesVerify workflow runs on merge to main
mainhttps://swcpreviews.z13.web.core.windows.net/docs/Verify manual trigger works
mainDevice review
N/A — CI workflow only.
Accessibility testing checklist
N/A — CI workflow only, no UI changes.