File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
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 :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ' 18'
20+
21+ - name : Install dependencies
22+ run : npm install
23+
24+ - name : Build project
25+ run : npm run build
26+
27+ - name : Deploy to GitHub Pages
28+ uses : peaceiris/actions-gh-pages@v3
29+ with :
30+ github_token : ${{ secrets.GITHUB_TOKEN }}
31+ publish_dir : ./dist
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react';
44// https://vitejs.dev/config/
55export default defineConfig ( {
66 plugins : [ react ( ) ] ,
7+ base : '/ai-coding-conventions-manager/' , // Replace <REPO_NAME> with your repository name
78} ) ;
You can’t perform that action at this time.
0 commit comments