feat: deploy docs via Zephyr Cloud with PR preview environments#509
feat: deploy docs via Zephyr Cloud with PR preview environments#509arthurfiorette with Copilot wants to merge 4 commits into
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #509 +/- ##
=======================================
Coverage 95.40% 95.40%
=======================================
Files 13 13
Lines 479 479
Branches 137 137
=======================================
Hits 457 457
Misses 20 20
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| }, | ||
|
|
||
| plugins: [ | ||
| withZephyr(), |
There was a problem hiding this comment.
For the deployment process to work, you will need to add ZE_CI_TOKEN to the list of turbo.json environment variables to pass on to the execution layer.
| run: pnpm turbo build -F @kitajs/docs-html | ||
|
|
||
| - name: Zephyr Preview Environments | ||
| uses: ZephyrCloudIO/zephyr-preview-environment-action@v0.1.1 |
Replaces GitHub Pages with Zephyr Cloud for docs deployment and adds automatic PR preview environments.
Changes
packages/docs/package.json— addzephyr-rspress-plugin ^0.0.59packages/docs/rspress.config.ts— registerwithZephyr()as first plugin; handles CDN upload duringrspress build.github/workflows/ci.yml— drop GitHub Pages permissions + deploy steps; passZE_SERVER_TOKENsecret to docs build.github/workflows/preview-environments.yml(new) — builds docs on every PR and runszephyr-preview-environment-actionto post preview URLs as PR comments; skips build onclosedevents (cleanup only)Required secret
Add
ZE_SERVER_TOKEN(Zephyr org-level server token) to Settings → Secrets → Actions before merging.