From 5b5d3853d19eef5f08debd4b42c5a8887c2e8873 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 11 Aug 2024 17:35:59 +0800 Subject: [PATCH] chore: fix surge deploy by locking version to 0.23.1 (#50359) --- .github/workflows/preview-deploy.yml | 4 ++-- .github/workflows/site-deploy.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index c5b937fb39..82b1534469 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -94,7 +94,7 @@ jobs: PR_ID: ${{ steps.pr.outputs.id }} run: | export DEPLOY_DOMAIN=https://preview-${PR_ID}-ant-design.surge.sh - npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} + npx surge0.23.1 --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} - name: success comment uses: actions-cool/maintain-one-comment@v3 @@ -121,6 +121,6 @@ jobs: - name: Check surge deploy result and exit if failed run: | if [ "${{ steps.deploy.outcome }}" != "success" ]; then - echo "Surge Deploy failed: ${{ steps.deploy.conclusion }}" + echo "Surge Deploy failed." exit 1 fi diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index 5e69e82222..d1b300a9f9 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -102,7 +102,7 @@ jobs: run: | export DEPLOY_DOMAIN=ant-design-${{ steps.publish-version.outputs.VERSION }}.surge.sh cp report.html ./_site - npx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} + npx surge0.23.1 --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} - name: Create Commit Comment uses: peter-evans/commit-comment@v3