修复 CI 工作流中的条件判断,确保在 nektos/act 环境下跳过 Surge 部署步骤
All checks were successful
/ depcheck (push) Successful in 1m30s
/ playwright (push) Successful in 3m26s
/ build-and-deploy-to-vercel (push) Successful in 1m33s

This commit is contained in:
严浩
2024-10-12 16:50:16 +08:00
parent d27bec83ca
commit 84e818320c

View File

@ -39,7 +39,7 @@ jobs:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: 部署到 Surge
id: surge_deploy
if: ${{ !github.event.act }} # https://nektosact.com/usage/index.html#skipping-steps
if: ${{ github.actor != 'nektos/act' }} # https://nektosact.com/usage/index.html#skipping-steps
uses: yanhao98/composite-actions/deploy-dist-to-surge@c1cee30ad33e363e4a7f6a5e15b03a9d2034b922
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps