Skip to content

chore(fix): add github actionsv1-0-2 #3

chore(fix): add github actionsv1-0-2

chore(fix): add github actionsv1-0-2 #3

Workflow file for this run

name: Deploy to VPS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy to VPS
uses: appleboy/ssh-action@v1.0.2
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
password: ${{ secrets.VPS_PASSWORD }}
script: |
cd /var/www
git reset --hard
git pull origin main