mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
ci: fix website deploy fail (#51869)
This commit is contained in:
parent
cbfe7fb454
commit
aeed1115a3
8
.github/workflows/site-deploy.yml
vendored
8
.github/workflows/site-deploy.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user