ci: fix website deploy fail (#51869)

This commit is contained in:
𝑾𝒖𝒙𝒉 2024-12-03 14:09:17 +08:00 committed by GitHub
parent cbfe7fb454
commit aeed1115a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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