修复 CI 工作流中的条件判断,确保在 nektos/act 环境下跳过 Surge 部署步骤
This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
VITE_BUILD_COMMIT: ${{ github.sha }}
|
VITE_BUILD_COMMIT: ${{ github.sha }}
|
||||||
- name: 部署到 Surge
|
- name: 部署到 Surge
|
||||||
id: surge_deploy
|
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
|
uses: yanhao98/composite-actions/deploy-dist-to-surge@c1cee30ad33e363e4a7f6a5e15b03a9d2034b922
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: pnpm exec playwright install --with-deps
|
run: pnpm exec playwright install --with-deps
|
||||||
|
Reference in New Issue
Block a user