File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed
Expand file tree Collapse file tree 2 files changed +31
-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+ branches : [ main ]
6+
7+ jobs :
8+ build-and-deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout 🛎️
12+ uses : actions/checkout@v3
13+
14+ - name : Setup Node.js ⚙️
15+ uses : actions/setup-node@v3
16+ with :
17+ node-version : ' 19'
18+ cache : ' npm'
19+
20+ - name : Install dependencies 📦
21+ run : npm ci
22+
23+ - name : Build 🔧
24+ run : npm run build
25+
26+ - name : Deploy 🚀
27+ uses : JamesIves/github-pages-deploy-action@v4
28+ with :
29+ folder : dist
30+ branch : gh-pages
Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ import path from 'path';
66export default defineConfig ( {
77 plugins : [ react ( ) ] ,
88
9- // Adjust base path according to your deployment needs
10- // Using '/' if deploying to a custom domain, or '/hxndev.github.io/' if deploying to a GitHub Pages project site
11- base : '/' , // Changed to root path for local development
9+ base : '/' ,
1210
1311 build : {
1412 outDir : 'dist' ,
You can’t perform that action at this time.
0 commit comments