File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Checkout
12- uses : actions/checkout@v2
12+ uses : actions/checkout@v6
1313 with :
1414 persist-credentials : false
1515
1616 - name : Setup Node
17- uses : actions/setup-node@v2
17+ uses : actions/setup-node@v6
1818 with :
19- node-version : ' 16 '
19+ node-version : ' 22 '
2020
2121 - name : Install dependencies
2222 run : yarn install
2323
24- - name : Build NextJS
24+ - name : Build project and prepare for deployment
2525 env :
2626 NODE_ENV : production
27- run : yarn build
27+ run : |
28+ yarn build
29+ touch dist/.nojekyll
30+ cp CNAME ./dist
2831
2932 - name : Deploy to GitHub Pages
3033 uses : crazy-max/ghaction-github-pages@v2
3134 if : success()
3235 with :
3336 target_branch : gh-pages
34- build_dir : out
37+ build_dir : dist
3538 commit_message : ' chore: deploy to GitHub Pages'
3639 env :
3740 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "scripts" : {
66 "dev" : " vite" ,
7- "build" : " vite build && touch dist/.nojekyll && cp CNAME ./dist " ,
7+ "build" : " vite build" ,
88 "preview" : " vite preview" ,
99 "lint" : " eslint --ext .js,.jsx,.ts,.tsx src"
1010 },
You can’t perform that action at this time.
0 commit comments