File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1212 node-version : ' 20.x'
1313 - run : npm install
1414 - run : npm run build
15+
1516 test :
1617 needs : build
1718 runs-on : ubuntu-latest
2425 node-version : ' 20.x'
2526 - run : npm install
2627 - run : npm test
28+
29+ deploy :
30+ needs : test
31+ permissions :
32+ contents : write
33+ pages : write
34+ id-token : write
35+ environment :
36+ name : Production
37+ url : ${{ steps.deployment.outputs.page_url }}
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : checkout repo
41+ uses : actions/checkout@v4
42+ with :
43+ token : ${{ secrets.GITHUB_TOKEN }}
44+ - name : Use node.js
45+ uses : actions/setup-node@v4
46+ with :
47+ node-version : ' 20.x'
48+ - name : configure github pages
49+ uses : actions/configure-pages@v4
50+ with :
51+ static_site_generator : next
52+ - run : npm install
53+ - run : npm run build
54+ - name : upload artifacts
55+ uses : actions/upload-pages-artifact@v3
56+ with :
57+ path : ' ./out'
58+ - name : deploy
59+ id : deployment
60+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments