[WIP] 添加发布快照的 workflow #126
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
发布快照开发已在 fork 仓库中完成开发。目前提交 PR,配置环境变量,完成最后的工作。
关于整个 workflow 相关解释可以参考 kang8#2 (comment) 和 kang8#2 (comment) 。
需要做的事
提交到
ossrh
需要用户名和密码,所以需要将它们设置成环境变量中。具体如何设置环境变量可以参考官方文档中的 为仓库创建加密密码具体要创建两个变量,并与 workflow 中一致:
在原有的 release profile 中,由于添加了 gpg 相关依赖,所以要添加 gpg 密钥才行,快照版本并不是强制需要 gpg,为了不把问题搞复杂,就舍弃原有的 release,新创建一个 snapshot profile 用于发布快照:相关代码可以看 这里
另外,在发布的过程中,运行了测试,发现最新的代码对于 twitter 的修改导致测试代码失效,所以我也修复了这个问题。