From aeed1115a3c4603ea3242a3b786496dda57ef7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=91=BE=F0=9D=92=96=F0=9D=92=99=F0=9D=92=89?= Date: Tue, 3 Dec 2024 14:09:17 +0800 Subject: [PATCH] ci: fix website deploy fail (#51869) --- .github/workflows/site-deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index b9b21a0fd4..b224ab6790 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -33,6 +33,12 @@ jobs: ANALYZER: 1 NODE_OPTIONS: --max_old_space_size=4096 + - name: move report.html to _site + run: | + if [ -f report.html ]; then + mv report.html _site && echo "report.html moved to _site" + fi + - name: upload site artifact uses: actions/upload-artifact@v4 with: @@ -59,6 +65,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_site + exclude_files: ./_site/report.html # 👈 这个功能是 beta, 但即便不排除,也不 care force_orphan: true # Since force_orphan will not trigger Sync to Gitee, we need to force run it here @@ -73,7 +80,6 @@ jobs: - name: Deploy to Surge (with TAG) run: | export DEPLOY_DOMAIN=ant-design-${{ steps.publish-version.outputs.VERSION }}.surge.sh - cp report.html ./_site bunx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} - name: Create Commit Comment