File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,38 @@ jobs:
1111 deploy :
1212 name : Deploy
1313 runs-on : ubuntu-latest
14+ # Recommended permissions block for GitHub Pages deployment
1415 permissions :
1516 pages : write
1617 id-token : write
18+
1719 steps :
18- - uses : actions/checkout@v3
19- - uses : actions/setup-node@v3
20+ # UPGRADE 1: Use v4 for better compatibility and security
21+ - name : Checkout Repository
22+ uses : actions/checkout@v4
23+
24+ # UPGRADE 2: Use v4 for better cache logic and compatibility
25+ - name : Set up Node.js
26+ uses : actions/setup-node@v4
2027 with :
21- node-version : 18
28+ # FIX: Ensure version 20 or later is used, as required by your build
29+ node-version : 20
2230 cache : npm
2331
2432 - name : Install dependencies
2533 run : npm install
34+
2635 - name : Build website
2736 run : npm run build
2837
29- - name : Upload Artifact
38+ # UPGRADE 3: Use v4 for upload-artifact
39+ - name : Upload Artifact (Docusaurus build output)
3040 uses : actions/upload-artifact@v4
3141 with :
42+ # The Docusaurus build output directory
43+ name : github-pages
3244 path : ./build
33-
45+
3446 - name : Deploy to GitHub Pages
3547 id : deployment
36- uses : actions/deploy-pages@v1
48+ uses : actions/deploy-pages@v4 # UPGRADE 4: Use v4 for deployment
You can’t perform that action at this time.
0 commit comments