Skip to content

chore: fix spacing in code #27

chore: fix spacing in code

chore: fix spacing in code #27

Workflow file for this run

# Deploy to VPS workflow
name: Deploy to VPS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/www/html
rm -rf *
cp -r $GITHUB_WORKSPACE/dist/* .
ls -l
- name: Succes
run: echo "Deployed successfully"