Files
docs/versioned_docs/version-2.3/developer-guide/plugin/publish.md
Ryan Wang 147952f9c2 docs: improve documentations of plugin development (#271)
优化 Halo 插件开发文档。

/kind documentation

```release-note
None
```
2023-10-26 16:12:18 +00:00

20 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 发布插件
description: 了解如何与我们的社区分享你的插件
---
> 了解如何与我们的社区分享您的扩展。
## 创建你的 Release
当你完成了你的插件并进行充分测试后,切换到插件目录 Build 一次,当没有发生任何错误你就可以推送到 GitHub 并 `Create a new release`
然后填写 `Release Tag` 和描述点击创建,项目目录下的 `.github/workflows/workflow.yaml` 文件会被 `GitHub Action` 触发并执行,脚本会自动根据你的 `Release Tag` 修改插件版本号然后在 `Release``Assets` 中包含打包产物--插件的 JAR 文件。
## 分享你的插件
用户可以在你的仓库 Release 下载使用,但为了方便让社区用户看到,你可以在我们的 [awesome-halo](https://github.com/halo-sigs/awesome-halo) 仓库发起一个 Pull Request为此你需要先 Fork [awesome-halo](https://github.com/halo-sigs/awesome-halo) 并按照此仓库的要求添加一行记录是关于你的插件仓库地址和功能描述的,然后推送你的更改并通过 GitHub 向 [awesome-halo](https://github.com/halo-sigs/awesome-halo) 的 `main` 分支发起 Pull Request。
## 等待审核
在你发起 Pull Request 后我们将审查的你的插件并在需要时请求更改。一旦被接受Pull Request 将被合并。