File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8+ permissions : # ✅ Ensure correct permissions
9+ contents : write
10+ pages : write
11+ id-token : write
12+
813jobs :
914 build :
1015 name : Build
1621
1722 - name : Setup Node
1823 uses : actions/setup-node@v3
24+ with :
25+ node-version : 18 # Adjust as needed
1926
2027 - name : Install dependencies
2128 run : npm install --no-package-lock
3643 if : github.ref == 'refs/heads/main'
3744
3845 steps :
46+ - name : Checkout repo
47+ uses : actions/checkout@v3
48+
3949 - name : Download artifact
4050 uses : actions/download-artifact@v3
4151 with :
4555 - name : Deploy to GitHub Pages
4656 uses : peaceiris/actions-gh-pages@v3
4757 with :
48- github_token : ${{ secrets.GH_TOKEN }}
49- publish_dir : ./build
58+ github_token : ${{ secrets.GITHUB_TOKEN }} # ✅ Corrected Token
59+ publish_dir : ./build
60+ publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments