diff options
| author | Leander <80996591+schererleander@users.noreply.github.com> | 2025-05-30 01:31:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-30 01:31:22 +0200 |
| commit | dac786bf6478f50558557829a0fe9444f83f62a6 (patch) | |
| tree | a351d69a963dcb88b3806febc8253590c917986e /.github | |
| parent | 15e4f5f9edfa3a3e769a6fcf7034f03a20093657 (diff) | |
Update deploy.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yml | 8 |
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: |
