yangzhg commented on a change in pull request #8136:
URL: https://github.com/apache/incubator-doris/pull/8136#discussion_r809903962
##########
File path: docs/zh-CN/community/release-and-verify/release-doris-connectors.md
##########
@@ -0,0 +1,280 @@
+---
+{
+"title": "发布 Doris Connectors",
+"language": "zh-CN"
+}
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# 发布 Doris Connectors
+
+Doris Connectors 目前包含:
+
+* Doris Flink Connector
+* Doris Spark Connector。
+
+其代码库独立于 Doris 主代码库,分别位于:
+
+- https://github.com/apache/incubator-doris-flink-connector
+- https://github.com/apache/incubator-doris-spark-connector
+
+## 准备发布
+
+首先,请参阅 [发版准备](./release-prepare.md) 文档进行发版准备。
+
+## 准备发布
+
+首先,请参阅 [发版准备](./release-prepare.md) 文档进行发版准备。## 发布到 Maven
+
+我们以发布 Flink Connector v1.0.0 为例。
+
+### 1. 准备分支
+
+在代码库中创建分支:branch-1.0,并 checkout 到该分支。
+
+### 2. 发布到 Maven staging
+
+因为 Flink Connector 针对不同 Flink 版本(如 1.11, 1.12, 1.13)发布不同的
Release。因此我们需要针对每一个版本单独进行处理。
+
+下面我们以 Flink 版本 1.13.5,scala 版本 2.12 为例说明:
+
+先替换 pom.xml 中的 flink.version 和 scala.version:
+
+```
+cd flink-doris-connector/
+sed -i 's/\${flink.version}/1.13.5/g' pom.xml
+sed -i 's/\${scala.version}/2.12/g' pom.xml
+```
+
+替换后,提交本地修改:
+
+```
+git add . -u
+git commit -m "prepare for 1.13.5-2.12-1.0.0"
+```
+
+执行以下命令开始生成 release tag:
+
+```bash
+cd flink-doris-connector/
+mvn release:clean -DreleaseArgs="-Dflink.version=1.13.5 -Dscala.version=2.12"
-Dflink.version=1.13.5 -Dscala.version=2.12
+mvn release:prepare -DreleaseArgs="-Dflink.version=1.13.5
-Dscala.version=2.12" -Dflink.version=1.13.5 -Dscala.version=2.12
-DpushChanges=false
+```
+
+其中 `-DpushChanges=false` 表示执行过程中,不会向代码库推送新生成的分支和 tag。
+
+在执行 `release:prepare` 命令后,会要求提供以下三个信息:
+
+1. Doris Flink Connector 的版本信息, 我们默认就可以,可以直接回车或者输入自己想要的版本。版本格式为
`{flink.version}-{scala.version}-{connector.version}`,如 `1.13.5-2.12-1.0.0`。
+2. Doris Flink Connector 的 release tag, release 过程会在本地生成一个 tag。我们使用默认的 tag
名称即可,如 `1.13.5-2.12-1.0.0`。
+3. Doris Flink Connector
下一个版本的版本号。这个版本号只是用于生成本地分支时使用,无实际意义。我们按规则填写一个即可,比如当前要发布的版本是:`1.13.5-2.12-1.0.0`,那么下一个版本号填写
`1.13.5-2.12-1.0.1` 即可。
+```
Review comment:
```suggestion
```
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]