File tree Expand file tree Collapse file tree 2 files changed +63
-1
lines changed Expand file tree Collapse file tree 2 files changed +63
-1
lines changed Original file line number Diff line number Diff line change 1+ # Sample workflow for building and deploying a website to GitHub Pages
2+ name : deploy
3+
4+ on :
5+ # Runs on pushes targeting the default branch and c4 files
6+ push :
7+ branches : ["main"]
8+
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment, skipping runs queued between the run in progress and the latest queued.
16+ # However, do NOT cancel in-progress runs, as we want to allow these production deployments to be completed.
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ # Build job
23+ build-pages :
24+ runs-on : ubuntu-24.04-arm
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+
29+ - name : Setup pnpm
30+ uses : pnpm/action-setup@v4
31+
32+ - name : Setup node
33+ uses : actions/setup-node@v4
34+ with :
35+ cache : " pnpm"
36+
37+ - name : Setup Pages
38+ id : pages
39+ uses : actions/configure-pages@v4
40+
41+ - name : Build
42+ run : |
43+ pnpm vite build \
44+ --base ${{ steps.pages.outputs.base_path }} \
45+ --output dist
46+
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
49+ with :
50+ path : ./dist
51+
52+ # Deployment job
53+ deploy-pages :
54+ environment :
55+ name : github-pages
56+ url : ${{ steps.deployment.outputs.page_url }}
57+ runs-on : ubuntu-latest
58+ needs : build-pages
59+ steps :
60+ - name : Deploy to GitHub Pages
61+ id : deployment
62+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ const viewId = hash.slice(1) || 'index'
223223## Learn More
224224
225225- [ LikeC4 website] ( https://likec4.dev )
226- - [ DSL Reference] ( hhttps ://likec4.dev/dsl/intro/)
226+ - [ DSL Reference] ( https ://likec4.dev/dsl/intro/)
227227- [ Vite Plugin Docs] ( https://likec4.dev/tooling/vite-plugin/ )
228228- [ React Integration Guide] ( https://likec4.dev/tooling/react/ )
229229
You can’t perform that action at this time.
0 commit comments