File tree Expand file tree Collapse file tree 2 files changed +41
-5
lines changed
Expand file tree Collapse file tree 2 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Test, Build, and Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : 📥 Checkout code
14+ uses : actions/checkout@v3
15+
16+ - name : 🟢 Set up Node
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ' 22'
20+
21+ - name : 📦 Install dependencies
22+ run : npm ci
23+
24+ - name : 🧪 Run tests
25+ run : npm run test
26+
27+ - name : 🛠️ Build project
28+ run : npm run build
29+
30+ - name : 🚀 Deploy to GitHub Pages
31+ if : success()
32+ uses : peaceiris/actions-gh-pages@v3
33+ with :
34+ github_token : ${{ secrets.GITHUB_TOKEN }}
35+ publish_dir : ./dist
Original file line number Diff line number Diff line change 1- import { defineConfig } from 'vite' ;
1+ import { defineConfig } from 'vite' ;
22import react from '@vitejs/plugin-react-swc' ;
33import svgr from 'vite-plugin-svgr' ;
44
55// https://vitejs.dev/config/
66export default defineConfig ( {
7- plugins : [ react ( ) , svgr ( ) ] ,
8- build : {
9- outDir : 'docs' ,
10- } ,
7+ plugins : [ react ( ) , svgr ( ) ] ,
8+ base : '/openwebcad/' ,
9+ build : {
10+ outDir : 'dist' ,
11+ } ,
1112} ) ;
You can’t perform that action at this time.
0 commit comments