diff --git a/.cnb.yml b/.cnb.yml new file mode 100644 index 00000000..bb82b287 --- /dev/null +++ b/.cnb.yml @@ -0,0 +1,16 @@ +.sync: &sync + - imports: + - https://cnb.cool/tencent/tdesign/tdesign-private/-/blob/main/cnb-envs.yml + stages: + - name: Sync to GitHub + image: tencentcom/git-sync + settings: + target_url: https://github.com/Tencent/tdesign-vue-next-starter.git + auth_type: https + username: ${GIT_USERNAME} + password: ${GIT_ACCESS_TOKEN} + push_tags: true + +"(main|develop)": + push: + - <<: *sync diff --git a/.github/workflows/sync-cnb.yml b/.github/workflows/sync-cnb.yml new file mode 100644 index 00000000..4c9433ea --- /dev/null +++ b/.github/workflows/sync-cnb.yml @@ -0,0 +1,24 @@ +name: Sync to CNB +on: + push: + branches: [main, develop] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Sync to CNB Repository + run: | + docker run --rm \ + -v ${{ github.workspace }}:${{ github.workspace }} \ + -w ${{ github.workspace }} \ + -e PLUGIN_TARGET_URL="https://cnb.cool/tencent/tdesign/tdesign-vue-next-starter.git" \ + -e PLUGIN_AUTH_TYPE="https" \ + -e PLUGIN_USERNAME="cnb" \ + -e PLUGIN_PASSWORD=${{ secrets.CNB_TOKEN }} \ + -e PLUGIN_PUSH_TAGS="true" \ + tencentcom/git-sync diff --git a/README-zh_CN.md b/README-zh_CN.md index 6ea1b0c4..fb71226e 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -1,33 +1,32 @@ - +简体中文 | [English](./README.md)
-
-
-
+
+
+ 💻 实时预览
+  | 
+ 📃 使用文档
+  | 
+
+  cnb.cool
+
### 特性
diff --git a/README.md b/README.md
index 0b42ceeb..232cb757 100644
--- a/README.md
+++ b/README.md
@@ -1,30 +1,32 @@
+English | [简体中文](./README-zh_CN.md)
-
-
-
+
+
+
+ 💻 实时预览
+  | 
+ 📃 使用文档
+  | 
+
+  cnb.cool
- Live Preview - · - Documentation -
-
### Features