This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
commit de35845ce9dbd9aebaef827303ef5bcdac7546e9 Author: CritasWang <[email protected]> AuthorDate: Tue Jul 11 18:10:09 2023 +0800 ci(拆分deploy): --- .github/workflows/site-build.yaml | 2 ++ deploy.js => deploy.cjs | 4 ++-- src/deploy.js => deploy_staging.cjs | 6 +++--- package.json | 3 ++- tsconfig.json | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/site-build.yaml b/.github/workflows/site-build.yaml index 403653f..5f65cec 100644 --- a/.github/workflows/site-build.yaml +++ b/.github/workflows/site-build.yaml @@ -30,3 +30,5 @@ jobs: run: npm ci - name: Test compile website run: npm run build + - name: Deploy staging + run: npm run deploy:staging diff --git a/deploy.js b/deploy.cjs similarity index 88% rename from deploy.js rename to deploy.cjs index c99c0a9..00a61e1 100644 --- a/deploy.js +++ b/deploy.cjs @@ -19,7 +19,7 @@ const ghpages = require('gh-pages'); -ghpages.publish('docs/.vuepress/dist', { +ghpages.publish('src/.vuepress/dist', { branch: 'asf-site', - repo: 'https://gitbox.apache.org/repos/asf/iotdb-website.git', + repo: 'https://github.com/apache/iotdb-website.git', }); diff --git a/src/deploy.js b/deploy_staging.cjs similarity index 86% rename from src/deploy.js rename to deploy_staging.cjs index c99c0a9..8547602 100644 --- a/src/deploy.js +++ b/deploy_staging.cjs @@ -19,7 +19,7 @@ const ghpages = require('gh-pages'); -ghpages.publish('docs/.vuepress/dist', { - branch: 'asf-site', - repo: 'https://gitbox.apache.org/repos/asf/iotdb-website.git', +ghpages.publish('src/.vuepress/dist', { + branch: 'asf-staging', + repo: 'https://github.com/apache/iotdb-website.git', }); diff --git a/package.json b/package.json index 5419482..7eb70a0 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "docs:clean-dev": "vuepress dev src --clean-cache", "dev": "vuepress dev src", "docs:update-package": "npx vp-update", - "deploy": "node --max_old_space_size=6000 deploy.js", + "deploy": "node --max_old_space_size=6000 deploy.cjs", + "deploy:staging": "node --max_old_space_size=6000 deploy_staging.cjs", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix" }, "devDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 6d191e7..81da69a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,5 +4,5 @@ "module": "ESNext", "baseUrl": "./", }, - "include": ["**/*.ts", "**/*.js", "**/*.vue", "src/.vuepress/*.js", "src/.vuepress/*.ts", "src/.vuepress/*.vue", "src/.vuepress/**/*.js", "src/.vuepress/**/*.ts", "src/.vuepress/**/*.vue"] + "include": ["**/*.ts", "**/*.js", "**/*.vue", "src/.vuepress/*.js", "src/.vuepress/*.ts", "src/.vuepress/*.vue", "src/.vuepress/**/*.js", "src/.vuepress/**/*.ts", "src/.vuepress/**/*.vue", "deploy.cjs", "deploy_staging.cjs"] } \ No newline at end of file
