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)

- TDesign Logo + TDesign Logo

node compatibility - - License - + Version + License

-简体中文 | [English](./README.md) +

+ 💻 实时预览 +  |  + 📃 使用文档 +  |  + CNB Logo +  cnb.cool +

### 项目简介 TDesign Vue Next Starter 是一个基于 TDesign,使用 `Vue3`、`Vite`、`Pinia`、`TypeScript` 开发,可进行个性化主题配置,旨在提供项目开箱即用的、配置式的中后台项目。 -

- 在线预览 - · - 使用文档 - -

- ### 特性 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)

- TDesign Logo + TDesign Logo

node compatibility - - License - + Version + License +

+ +

+ 💻 实时预览 +  |  + 📃 使用文档 +  |  + CNB Logo +  cnb.cool

-English | [简体中文](./README-zh_CN.md) ### Introduction TDesign Vue Next Starter is a TDesign-based developed with `Vue 3`, `Vite`, `Pinia`, `TypeScript`. It can be customized theme configuration, and aims to provide project out-of-the-box, configuration-style middle and background projects. -

- Live Preview - · - Documentation -

- ### Features