mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
👷 update changelog ci
This commit is contained in:
parent
cee96d8ab6
commit
962c71ea4e
10
.github/workflows/release-drafter.yml
vendored
10
.github/workflows/release-drafter.yml
vendored
@ -22,10 +22,12 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# TODO
|
||||
# - name: Update Changelog
|
||||
# run: |
|
||||
# echo ${{ steps.release-drafter.outputs.body }}
|
||||
- name: Update Changelog
|
||||
uses: docker://nonebot/auto-changelog:master
|
||||
with:
|
||||
changelog_file: website/src/pages/changelog.md
|
||||
latest_changes_position: '# 更新日志\n\n'
|
||||
changelog_body: ${{ steps.release-drafter.outputs.body }}
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -25,9 +25,13 @@ jobs:
|
||||
- name: Archive Files
|
||||
run: yarn archive $(poetry version -s)
|
||||
|
||||
# TODO
|
||||
- run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV
|
||||
|
||||
- name: Archive Changelog
|
||||
run: cat CHANGELOG.md
|
||||
uses: docker://nonebot/auto-changelog:master
|
||||
with:
|
||||
changelog_file: website/src/pages/changelog.md
|
||||
archive_title: ${{ env.TAG_NAME }}
|
||||
|
||||
- name: Push Tag
|
||||
run: |
|
||||
@ -35,5 +39,5 @@ jobs:
|
||||
git config user.email github-actions@github.com
|
||||
git add .
|
||||
git commit -m ":bookmark: Release $(poetry version -s)"
|
||||
git tag v$(poetry version -s)
|
||||
git tag ${{ env.TAG_NAME }}
|
||||
git push && git push --tags
|
||||
|
@ -4,7 +4,7 @@ description: Changelog
|
||||
|
||||
# 更新日志
|
||||
|
||||
## Latest Changes
|
||||
## v2.0.0-beta.2
|
||||
|
||||
- 修复 `receive`, `got` 在参数为空消息时依旧会反复询问
|
||||
- 修复文档商店分页显示错误
|
||||
@ -17,7 +17,7 @@ description: Changelog
|
||||
- 调整项目结构,分离内部定义与用户接口
|
||||
- 新增 Bot 连接事件钩子 (如 `driver.on_bot_connect` ) 的依赖注入
|
||||
|
||||
## v2.0.0b1
|
||||
## v2.0.0-beta.1
|
||||
|
||||
- 新增 `MessageTemplate` 对于 `str` 普通模板的支持
|
||||
- 移除插件加载的 `NameSpace` 模式
|
||||
|
Loading…
Reference in New Issue
Block a user