1
0

add: GitHub workflow

This commit is contained in:
alikia2x (寒寒) 2025-11-30 02:27:11 +08:00 committed by GitHub
parent 4008fabbf1
commit e0e145f57d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

18
.github/workflows/main.yml vendored Normal file
View 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