File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and deploy GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ jobs :
13+ deploy :
14+ runs-on : ubuntu-latest
15+ environment :
16+ name : github-pages
17+ url : ${{ steps.deployment.outputs.page_url }}
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version : 22
23+ - run : npm install
24+ working-directory : frontend
25+ - run : npm run build
26+ working-directory : frontend
27+ - uses : actions/configure-pages@v5
28+ - uses : actions/upload-pages-artifact@v3
29+ with :
30+ path : frontend/build
31+ - uses : actions/deploy-pages@v4
32+ id : deployment
Original file line number Diff line number Diff line change 11{
22 "name" : " dzs-frontend" ,
33 "version" : " 0.0.1" ,
4+ "homepage" : " /dzs-technical-prototype/" ,
45 "scripts" : {
56 "start" : " react-scripts start" ,
67 "build" : " react-scripts build"
You can’t perform that action at this time.
0 commit comments