Commit ccc9ad0
authored
feat: deploy website to GitHub Pages on release (#68)
* feat: deploy website to GitHub Pages on release
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)
* Update index.js
* fix: add permissions block to build_website job
Restrict GITHUB_TOKEN to contents:read only, as flagged by
github-advanced-security.1 parent ac794ed commit ccc9ad0
6 files changed
Lines changed: 1181 additions & 160 deletions
File tree
- .github/workflows
- dist
- website
- src
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments