File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Angular Build and Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v2
14+
15+ - name : Set up Node.js
16+ uses : actions/setup-node@v3
17+ with :
18+ node-version : 20
19+
20+ - name : Build Angular app to prod
21+ run : npm install && npm run build:prod
22+
23+ - name : Deploy to GitHub Pages
24+ uses : JamesIves/github-pages-deploy-action@v4
25+ with :
26+ folder : dist/browser
27+ branch : prod
28+ token : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 55 "ng" : " ng" ,
66 "start" : " ng serve" ,
77 "build" : " ng build" ,
8+ "build:prod" : " ng build --configuration=production --base-href=/material-playground/" ,
89 "watch" : " ng build --watch --configuration development" ,
910 "test" : " ng test"
1011 },
You can’t perform that action at this time.
0 commit comments