chore: improve gh-pages workflow (#38739)

This commit is contained in:
afc163 2022-11-19 19:40:53 +08:00 committed by GitHub
parent 68b1062ef1
commit 5fa55e291d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -68,3 +68,4 @@ jobs:
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./_site
force_orphan: true

View File

@ -62,8 +62,8 @@
"compile": "npm run clean && antd-tools run compile-experimental",
"changelog": "node ./scripts/print-changelog",
"predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run site:test",
"deploy": "gh-pages -d _site -b gh-pages",
"deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages",
"deploy": "gh-pages -d _site -b gh-pages -f",
"deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages -f",
"dist": "antd-tools run dist",
"dist:esbuild": "ESBUILD=true npm run dist",
"dist:esbuild-no-dup-check": "ESBUILD=true NO_DUP_CHECK=true npm run dist",
@ -225,6 +225,7 @@
"fetch-jsonp": "^1.1.3",
"fs-extra": "^10.0.0",
"full-icu": "^1.3.0",
"gh-pages": "^4.0.0",
"glob": "^8.0.1",
"highlight.js": "^11.5.0",
"http-server": "^14.0.0",