@@ -0,0 +1,29 @@
|
||||
name: Deploy Node App
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Deploy to VPS
|
||||
uses: appleboy/ssh-action@master
|
||||
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: ${{ secrets.PORT }}
|
||||
|
||||
script: |
|
||||
cd /root/IR-Node-Setup
|
||||
|
||||
git pull origin main
|
||||
|
||||
npm install
|
||||
|
||||
pm2 restart IR-Node-Setup
|
||||
Reference in New Issue
Block a user