Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
add continuous integration
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Jan 21, 2022
1 parent 616b958 commit 11f7dd5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to test server

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: azure

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Deploy
run: |
sudo systemctl stop cs261-web-server.service
rm -rf /mnt/disk/cs261/frontend
cp -rv ../reactjs-frontend /mnt/disk/cs261/frontend
cd /mnt/disk/cs261/frontend
npm install
npm run build
sudo systemctl start cs261-web-server.service

0 comments on commit 11f7dd5

Please sign in to comment.