aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/deploy.yml')
-rw-r--r--.github/workflows/deploy.yml8
1 files changed, 1 insertions, 7 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 2099d29..7e167ed 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -10,22 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- # 1) Checkout your code
- uses: actions/checkout@v3
- # 2) Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- # 3) Install dependencies & build
- name: Install & Build
run: |
npm ci
- npm run build # Vite’s default output dir is `dist/`
+ npm run build
- # 4) Clean remote dir
- name: Clean remote directory
uses: appleboy/ssh-action@master
with:
@@ -36,7 +32,6 @@ jobs:
script: |
rm -rf ${{ secrets.VPS_DESTINATION }}/*
- # 5) Copy build output to VPS via SCP
- name: Deploy build via SCP
uses: appleboy/scp-action@master
with:
@@ -47,7 +42,6 @@ jobs:
source: "dist/*"
target: ${{ secrets.VPS_DESTINATION }}
- # 6) Restart Nginx inside Docker on your VPS
- name: Restart Nginx (Docker)
uses: appleboy/ssh-action@master
with: