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 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 .",