Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
u21598267 authored Sep 11, 2023
1 parent e9808a6 commit 542c3fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Angular CI

on:
push:
branches:
- main # Only trigger on pushes to the main branch

jobs:

deploy:
runs-on: ubuntu-latest
steps:
Expand All @@ -19,6 +20,8 @@ jobs:
run: npm install
- name: Start the application
working-directory: ./INF354_Assignment2/Assignment2_u21598267
run: (npm start && exit 0) || (./rollback.sh && exit 1)
run: |
(ng serve --prod --port 4200 & sleep 5; kill $!) || (./rollback.sh && exit 1)

0 comments on commit 542c3fa

Please sign in to comment.