add: GitHub workflow
This commit is contained in:
parent
4008fabbf1
commit
e0e145f57d
18
.github/workflows/main.yml
vendored
Normal file
18
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: Deploy
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy the backend
|
||||
uses: appleboy/ssh-action@v1
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
cd /web/cvsa
|
||||
git pull
|
||||
pm2 restart cvsa-be --update-env
|
||||
Loading…
Reference in New Issue
Block a user