From 4c0cb12f69c6d53016ebe885de0e724567f21b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Mon, 27 Jul 2026 15:15:19 +0800 Subject: [PATCH 1/2] fix: correct GitHub Pages build path --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cceefc43..8944f2bb 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "compile": "father build", "coverage": "father test --coverage", "tsc": "tsc --noEmit", - "deploy": "UMI_ENV=gh npm run build && gh-pages -d docs-dist", + "deploy": "cross-env GH_PAGES=1 npm run build && gh-pages -d docs-dist", "lint": "eslint src/ examples/ tests/ --ext .tsx,.ts,.jsx,.js", "prepublishOnly": "npm run compile && rc-np", "prettier": "prettier --write --ignore-unknown .", From 61cb6bd4f089b17383c8487794bfa59608e36bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Mon, 27 Jul 2026 15:23:08 +0800 Subject: [PATCH 2/2] ci: deploy docs after releases --- .github/workflows/deploy-pages.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/deploy-pages.yml diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 00000000..72351e5f --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,15 @@ +name: Deploy documentation + +on: + release: + types: [published] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + uses: react-component/rc-test/.github/workflows/deploy-pages.yml@main