Skip to content

βœ” πŸ€” πŸ˜’ #445

βœ” πŸ€” πŸ˜’

βœ” πŸ€” πŸ˜’ #445

Workflow file for this run

# FansubID ~ Fansub Indonesia
name: Re-Deploy γƒΌ SSH
on:
push:
branches: [ "master" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH γƒΌ RCE
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
sudo pm2 stop fansubid
cd ~/www/fansubid
git pull
npm install
sudo pm2 restart fansubid
sudo systemctl reload nginx