修改工作目录
Some checks failed
Build and Deploy / build (push) Failing after 1m43s

This commit is contained in:
cheney 2026-04-16 13:46:45 +08:00
parent 8d9eef8c97
commit 52b77a2ae0

View File

@ -17,7 +17,10 @@ jobs:
- name: Install dependencies and build
run: |
docker run --rm -v "${PWD}:/app" -w /app node:24-alpine sh -c "npm install --registry=https://registry.npmmirror.com && npm run build"
echo "Current directory: $(pwd)"
echo "GitHub workspace: $GITHUB_WORKSPACE"
ls -la
docker run --rm -v "$GITHUB_WORKSPACE:/app" -w /app node:20 sh -c "ls -la && npm install --registry=https://registry.npmmirror.com && npm run build"
- name: Deploy to server
uses: appleboy/scp-action@v0.1.7