File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Angular CI/CD
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v2
15+ - name : Use Node.js
16+ uses : actions/setup-node@v2
17+ with :
18+ node-version : ' 16'
19+ - name : Install dependencies
20+ run : npm install
21+ - name : Build the Angular app
22+ run : npm run build-prod
23+ - name : Compress dist folder
24+ run : tar -czf dist.tar.gz dist/
25+ - name : Upload artifact
26+ uses : actions/upload-artifact@v2
27+ with :
28+ name : dist
29+ path : dist.tar.gz
Original file line number Diff line number Diff line change 66 "start" : " ng serve --host 0.0.0.0 --port 443" ,
77 "http" : " http-server -p 8080 -c-1 dist/aqua-viewer" ,
88 "build" : " ng build" ,
9- "build prod" : " ng build --configuration=production" ,
9+ "build- prod" : " ng build --configuration=production" ,
1010 "test" : " ng test" ,
1111 "lint" : " ng lint" ,
1212 "e2e" : " ng e2e" ,
You can’t perform that action at this time.
0 commit comments