20 lines
497 B
YAML
20 lines
497 B
YAML
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: |
|
|
source ~/.bashrc
|
|
cd /web/cvsa
|
|
git pull
|
|
/home/github-actions/.bun/bin/pm2 restart cvsa-be --update-env
|