Skip to content

[WIP] CI: add CNB Platform #839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .cnb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.sync: &sync
- 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:
push:
- <<: *sync
develop:
push:
- <<: *sync
24 changes: 24 additions & 0 deletions .github/workflows/sync-cnb.yml
Original file line number Diff line number Diff line change
@@ -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=${{ secrets.CNB_USERNAME }} \
-e PLUGIN_PASSWORD=${{ secrets.CNB_ACCESS_TOKEN }} \
-e PLUGIN_PUSH_TAGS="true" \
tencentcom/git-sync
25 changes: 12 additions & 13 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@

简体中文 | [English](./README.md)
<p style="display:flex; justify-content: center">

</p>
<p align="center">
<a href="https://tdesign.tencent.com/starter/vue-next/#/dashboard/base" target="_blank">
<img alt="TDesign Logo" width="200" src="https://tdesign.gtimg.com/starter/brand-logo.svg">
<img alt="TDesign Logo" width="300" src="https://tdesign.gtimg.com/starter/brand-logo.svg">
</a>
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-vue-next/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-vue-next.svg?sanitize=true" alt="License">
</a>
<a href="https://github.com/Tencent/tdesign-vue-next-starter/releases"><img src="https://img.shields.io/github/v/release/Tencent/tdesign-vue-next-starter" alt="Version"></a>
<a href="https://github.com/Tencent/tdesign-vue-next/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/tdesign-vue-next.svg?sanitize=true" alt="License"></a>
</p>

简体中文 | [English](./README.md)
<p align="center">
💻 <a href="http://tdesign.tencent.com/starter/vue-next/"><b>实时预览</b></a>
&nbsp|&nbsp
📃 <a href="https://tdesign.tencent.com/starter/"><b>使用文档</b></a>
&nbsp|&nbsp
<img src="https://cnb.cool/images/favicon.png" width="21" align="top" alt="CNB Logo">
&nbsp<a href="https://cnb.cool/tencent/tdesign/tdesign-vue-next-starter/"><b>cnb.cool</b></a>
</p>

### 项目简介

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

<p>
<a href="http://tdesign.tencent.com/starter/vue-next/">在线预览</a>
·
<a href="https://tdesign.tencent.com/starter/">使用文档</a>

</p>

<img src="docs/starter.png">

### 特性
Expand Down
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
English | [简体中文](./README-zh_CN.md)
<p style="display:flex; justify-content: center">

</p>
<p align="center">
<a href="https://tdesign.tencent.com/starter/vue-next/#/dashboard/base" target="_blank">
<img alt="TDesign Logo" width="200" src="https://tdesign.gtimg.com/starter/brand-logo.svg">
<img alt="TDesign Logo" width="300" src="https://tdesign.gtimg.com/starter/brand-logo.svg">
</a>
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-vue-next/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-vue-next.svg?sanitize=true" alt="License">
</a>
<a href="https://github.com/Tencent/tdesign-vue-next-starter/releases"><img src="https://img.shields.io/github/v/release/Tencent/tdesign-vue-next-starter" alt="Version"></a>
<a href="https://github.com/Tencent/tdesign-vue-next/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/tdesign-vue-next.svg?sanitize=true" alt="License"></a>
</p>

<p align="center">
💻 <a href="http://tdesign.tencent.com/starter/vue-next/"><b>实时预览</b></a>
&nbsp|&nbsp
📃 <a href="https://tdesign.tencent.com/starter/"><b>使用文档</b></a>
&nbsp|&nbsp
<img src="https://cnb.cool/images/favicon.png" width="21" align="top" alt="CNB Logo">
&nbsp<a href="https://cnb.cool/tencent/tdesign/tdesign-vue-next-starter/"><b>cnb.cool</b></a>
</p>

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.

<p>
<a href="http://tdesign.tencent.com/starter/vue-next/">Live Preview</a>
·
<a href="https://tdesign.tencent.com/starter/">Documentation</a>
</p>

<img src="docs/starter.png">

### Features
Expand Down