Skip to content

profession icon

profession icon #9

Workflow file for this run

name: Deploy to VPS
on:
push:
branches:
- master # or your default branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.VPS_SSH_KEY }}
- name: Deploy to VPS
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} "
cd ~/taimi/ &&
git reset --hard &&
git pull origin master &&
npm install &&
npm run build &&
pm2 restart all
"