File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
Expand file tree Collapse file tree 2 files changed +40
-2
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+ - master
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 20'
20+ cache : ' npm'
21+
22+ - name : Configure Git
23+ run : |
24+ git config --global user.name "github-actions[bot]"
25+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
26+
27+ - name : Install dependencies
28+ run : npm install
29+
30+ - name : Build project
31+ run : npm run predeploy
32+
33+ - name : Deploy to GitHub Pages
34+ run : |
35+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
36+ npm run deploy
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 253253 }
254254 }
255255 },
256- "w.e.f " : " 01/12/2024" ,
256+ "wef " : " 01/12/2024" ,
257257 "lastUpdated" : " 14/12/2024" ,
258258 "additionalInfo" : []
259- }
259+ }
You can’t perform that action at this time.
0 commit comments