File tree Expand file tree Collapse file tree 4 files changed +34
-49
lines changed
Expand file tree Collapse file tree 4 files changed +34
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deploy React 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
15+ uses : actions/setup-node@v3
16+ with :
17+ node-version : " 18"
18+ cache : " npm"
19+
20+ - name : Install and build
21+ run : |
22+ npm install
23+ npm run build
24+ touch build/.nojekyll
25+
26+ - name : Deploy
27+ uses : peaceiris/actions-gh-pages@v3
28+ with :
29+ github_token : ${{ secrets.GITHUB_TOKEN }}
30+ publish_dir : ./build
Original file line number Diff line number Diff line change 88 "dev" : " vite" ,
99 "build" : " tsc -b && vite build" ,
1010 "lint" : " eslint ." ,
11- "preview" : " vite preview"
11+ "preview" : " vite preview" ,
12+ "predeploy" : " npm run build && touch build/.nojekyll" ,
13+ "deploy" : " gh-pages -d build"
1214 },
1315 "dependencies" : {
1416 "@radix-ui/react-label" : " ^2.1.7" ,
Original file line number Diff line number Diff line change 1+
You can’t perform that action at this time.
0 commit comments