mirromutth / r2dbc-mysql

R2DBC MySQL Implementation
Apache License 2.0
656 stars 100 forks source link

Continuous deployment to Maven Central using GitHub Actions #204

Closed kevin70 closed 2 years ago

kevin70 commented 2 years ago

Translated in English:

Continuous deployment to Maven Central using GitHub Actions.

After merge this PR, project owner need to add OSSRH username, password, GPG Key, etc. in Settings> Secrets.

Original version (Chinese):

使用 GitHub Actions 自动发布 Maven 版本。

  • deploy-snapshot.yml 推送至 main 分布的内容自动发布 SNAPSHOT 版本至 Sonatype 快照仓库中;
  • deploy-release.yml 推送的 tags 前缀以 v* 开关的标签将自动发布 RELEASE 版本至 Sonatype 仓库中。

合并代码后,需要在项目的 Settings > Secrets 中增加 OSSRH用户密码、GPG Key 相关配置。

  • SIGNING_SECRET_KEY_RING_FILE GPG Private Key 用于 Maven 发布签名的密钥,文件采用 BASE64 编码保存;
  • GPG_PASSPHRASE GPG 密钥的密码(如果没有密码可以忽略);
  • OSSRH_USERNAME OSSRH 的登录用户名;
  • OSSRH_PASSWORD OSSRH 的登录密码。
mp911de commented 2 years ago

Can you please use english commit messages as english is the predominant language here?

mirromutth commented 2 years ago

Great thanks for you contribution. I have translated the PR title and content into English. Later I will translate commit messages into English and submit a new PR. Of course, the commit author (i.g. @kevin70 ) will be kept as it is.

Chinese version:

感謝您的代碼貢獻。我已將標題和内容翻譯爲英語。之後我會將Commit信息一并翻譯為英語並提交一個新的PR。當然,Commit的作者信息(也就是您)將會原封不動的保留。

kevin70 commented 2 years ago

Please refer to #205.