diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0313ecc --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }} + key: ${{ secrets.KEY }} + port: ${{ secrets.PORT }} + script: | + cd /web/cvsa + git pull + pm2 restart cvsa-be --update-env