Update CICD

This commit is contained in:
Aaron Lee 2021-10-12 21:41:41 +08:00 committed by GitHub
parent d607f26442
commit b7090f4c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ jobs:
- name: Test for Syntax Errors - name: Test for Syntax Errors
run: | run: |
py -m py_compile app.py python -m py_compile app.py
- name: CD - name: CD
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
@ -39,4 +39,5 @@ jobs:
script: | script: |
cd /home/ubuntu/Attendance cd /home/ubuntu/Attendance
git pull git pull
pip install -r ./requirements.txt
sudo systemctl restart Attendance.service sudo systemctl restart Attendance.service