-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 909 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Angular CI
on:
push:
jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./INF354_Assignment2/Assignment2_u21598267
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
working-directory: ./INF354_Assignment2/Assignment2_u21598267
run: npm install
- name: Start the application
working-directory: ./INF354_Assignment2/Assignment2_u21598267
run: npm start || ./rollback.sh