ShenYu rust语言客户端发布指南
更新发布公告
按照如下格式更新发布公告:
## ${PUBLISH.VERSION}
### New Features
1. xxx
1. xxx
...
### API Changes
1. xxx
1. xxx
...
### Enhancement
1. xxx
1. xxx
...
### Refactor
1. xxx
1. xxx
...
### Bug Fix
1. xxx
1. xxx
...
创建 GPG KEY
每个发布经理只在第一次发布时创建 GPG KEY,以后发布可复用此 KEY。
1. 创建 KEY
安装 GnuPG。
按照 OpenPGP KEY Management [1] 的说明创建 KEY:
gpg --full-gen-key
创建步骤(以下内容来自控制台输出):
gpg (GnuPG) 2.2.4; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0)
Key does not expire at all
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: (设置用户名)(使用apache id)
Email address: (设置邮件地址)(使用apache邮箱)
Comment: (填写注释)
You selected this USER-ID:
"用户名 (注释) <邮件地址>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key. (设置密码)
2. 检查 KEY
按照 Operational GPG Commands [2] 的说明检查 KEY:
gpg --list-keys
命令输出:
pub rsa4096 2019-03-11 [SC]
095E0D21BC28CFC7A8B8076DF7DF28D237A8048C
uid 用户名 (注释) <邮件地址>
sub rsa4096 2019-03-11 [E]
公钥为 095E0D21BC28CFC7A8B8076DF7DF28D237A8048C。
3. 上传公钥
按照 Dirmngr Options [3] 的说明上传公钥:
gpg --send-key 095E0D21BC28CFC7A8B8076DF7DF28D237A8048C
发布前的准备工作
1. 发布一个新标签
下载并安装 Git.
创建并切换到 ${PUBLISH.VERSION} 标签.
git clone https://github.com/apache/shenyu-client-rust.git ~/shenyu-client-rust
cd ~/shenyu-client-rust/
git checkout main
git tag -a ${PUBLISH.VERSION} -m "${PUBLISH.VERSION} release shenyu client rust"