mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +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
|
ANALYZER: 1
|
||||||
NODE_OPTIONS: --max_old_space_size=4096
|
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
|
- name: upload site artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -59,6 +65,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./_site
|
publish_dir: ./_site
|
||||||
|
exclude_files: ./_site/report.html # 👈 这个功能是 beta, 但即便不排除,也不 care
|
||||||
force_orphan: true
|
force_orphan: true
|
||||||
|
|
||||||
# Since force_orphan will not trigger Sync to Gitee, we need to force run it here
|
# 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)
|
- name: Deploy to Surge (with TAG)
|
||||||
run: |
|
run: |
|
||||||
export DEPLOY_DOMAIN=ant-design-${{ steps.publish-version.outputs.VERSION }}.surge.sh
|
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 }}
|
bunx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
|
||||||
|
|
||||||
- name: Create Commit Comment
|
- name: Create Commit Comment
|
||||||
|
Loading…
Reference in New Issue
Block a user