File tree Expand file tree Collapse file tree 5 files changed +53
-3
lines changed
Expand file tree Collapse file tree 5 files changed +53
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+
6+ permissions :
7+ contents : read
8+ pages : write
9+ id-token : write
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-node@v4
17+ with :
18+ node-version : lts/*
19+ - uses : pnpm/action-setup@v4
20+ with :
21+ version : 10
22+ - run : pnpm install
23+ - run : pnpm build
24+ - uses : actions/upload-pages-artifact@v3
25+ with :
26+ path : dist
27+
28+ deploy :
29+ needs : build
30+ runs-on : ubuntu-latest
31+ environment :
32+ name : github-pages
33+ url : ${{ steps.deployment.outputs.page_url }}
34+ steps :
35+ - name : Deploy to GitHub Pages
36+ id : deployment
37+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ import { defineConfig } from "astro/config" ;
2+
3+ // https://astro.build/config
4+ export default defineConfig ( {
5+ site : "https://jsulpis.github.io" ,
6+ base : "/talk-webgpu" ,
7+ } ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "scripts" : {
3+ "prebuild" : " rm -rf dist" ,
4+ "build" : " pnpm -r build && mv demos/dist dist && mv slides/dist/* dist" ,
5+ "dev" : " pnpm -r dev"
6+ }
7+ }
Original file line number Diff line number Diff line change 1- # TODO: deploy to GitHub Pages and update this URL
2- VITE_DEMOS_BASE_URL = http://localhost:4321
1+ VITE_DEMOS_BASE_URL = http://jsulpis.github.io/talk-webgpu
Original file line number Diff line number Diff line change 33 "private" : true ,
44 "type" : " module" ,
55 "scripts" : {
6- "build" : " slidev build" ,
6+ "build" : " slidev build --base /talk-webgpu/ " ,
77 "dev" : " slidev" ,
88 "export" : " slidev export"
99 },
You can’t perform that action at this time.
0 commit comments