diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7ec459..e0c1636 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,13 +69,17 @@ jobs: uses: actions/download-artifact@v4 with: name: mcpedia-web-build - path: apps/web + path: apps/web/.next + + - name: List downloaded files + working-directory: apps/web + run: ls -la .next/ | head -10 # Tar .next on the runner (handles hidden files correctly), # then SCP the tarball to VPS and SSH to unpack + restart. - # VPS only receives + unpacks — no build step on the VPS. - name: Create deploy tarball - run: tar -C apps/web -czf mcpedia-web-next.tar.gz .next + working-directory: apps/web + run: tar -czf ../../mcpedia-web-next.tar.gz .next - name: Copy tarball to VPS uses: appleboy/scp-action@v1