Skip to content

add: cv

add: cv #34

Workflow file for this run

name: Deploy to VPS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: node-lts-alpine3.20
steps:
# - name: Checkout code
# uses: actions/checkout@v2
#
# - name: Install dependencies
# run: pnpm 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