diff --git a/.gitea/workflows/deploy-site.yml b/.gitea/workflows/deploy-site.yml index f7ea740..560cb89 100644 --- a/.gitea/workflows/deploy-site.yml +++ b/.gitea/workflows/deploy-site.yml @@ -17,17 +17,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Compile (Astro 官网, node:20 容器内构建) - run: | - docker run --rm -v "$PWD:/w" -w /w \ - -e SITE_URL=https://pangolin.yanmeiai.com \ - node:20 bash scripts/ci/compile-site.sh + # runner 镜像 catthehacker/ubuntu:act-latest 自带 node/npx,直接跑; + # 不用嵌套 docker run(job 容器内的 $PWD 在宿主上不存在,DinD 挂载会失败)。 + - name: Compile (Astro 官网) + env: + SITE_URL: https://pangolin.yanmeiai.com + run: bash scripts/ci/compile-site.sh - name: Deploy → Cloudflare Pages env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - run: | - docker run --rm -v "$PWD:/w" -w /w \ - -e CLOUDFLARE_API_TOKEN -e CLOUDFLARE_ACCOUNT_ID \ - node:20 bash scripts/ci/deploy-site.sh + run: bash scripts/ci/deploy-site.sh