feat: deploy website to GitHub Pages on release#68
Merged
MathurAditya724 merged 3 commits intomainfrom Mar 27, 2026
Merged
Conversation
Add gh-pages target to craft configuration so the website dashboard is automatically deployed to GitHub Pages when a release is published. Changes: - Add build_website job to CI workflow that builds the Vite app and uploads a gh-pages.zip artifact - Register the gh-pages artifact and target in .craft.yml - Set Vite base path to /codecov-action/ for correct asset URLs - Add basename to BrowserRouter for subpath routing - Fix broken Github icon import (removed in lucide-react 1.x)
Codecov Results 📊✅ 194 passed | Total: 194 | Pass Rate: 100% | Execution Time: 287ms 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 759 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 56.82% 56.82% —%
==========================================
Files 24 24 —
Lines 1753 1753 —
Branches 1257 1257 —
==========================================
+ Hits 994 994 —
- Misses 759 759 —
- Partials 97 97 —Generated by Codecov Action |
Restrict GITHUB_TOKEN to contents:read only, as flagged by github-advanced-security.
This was referenced Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds automatic deployment of the website dashboard to GitHub Pages whenever a release is published via Craft.
Changes
.github/workflows/build.yml: Add abuild_websitejob that builds the Vite app inwebsite/, zips the output asgh-pages.zip, and uploads it as agh-pagesartifact (matching the convention used bygetsentry/cli).craft.yml: Register thegh-pagesartifact from theBuild & Testworkflow and add thegh-pagesCraft target so it gets deployed oncraft publishwebsite/vite.config.ts: Setbase: "/codecov-action/"so asset paths work correctly when served fromhttps://getsentry.github.io/codecov-action/website/src/App.tsx: Addbasename={import.meta.env.BASE_URL}toBrowserRouterso client-side routing respects the subpathwebsite/src/pages/HomePage.tsx: ReplaceGithubicon withGitBranch— theGithubbrand icon was removed inlucide-react1.x (broken by chore(deps): bump lucide-react from 0.555.0 to 1.6.0 #60)Setup required after merge
After the first release deploys to the
gh-pagesbranch, enable GitHub Pages in repo Settings > Pages:gh-pages// (root)References
getsentry/cli/.craft.ymlwhich uses the samegh-pagestargetgh-pagestarget docs