👷 update changelog ci

This commit is contained in:
yanyongyu 2022-02-15 23:39:04 +08:00
parent cee96d8ab6
commit 962c71ea4e
No known key found for this signature in database
GPG Key ID: 796D8A7FB73396EB
3 changed files with 15 additions and 9 deletions

View File

@ -22,10 +22,12 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO - name: Update Changelog
# - name: Update Changelog uses: docker://nonebot/auto-changelog:master
# run: | with:
# echo ${{ steps.release-drafter.outputs.body }} changelog_file: website/src/pages/changelog.md
latest_changes_position: '# 更新日志\n\n'
changelog_body: ${{ steps.release-drafter.outputs.body }}
release: release:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

View File

@ -25,9 +25,13 @@ jobs:
- name: Archive Files - name: Archive Files
run: yarn archive $(poetry version -s) run: yarn archive $(poetry version -s)
# TODO - run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV
- name: Archive Changelog - 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 - name: Push Tag
run: | run: |
@ -35,5 +39,5 @@ jobs:
git config user.email github-actions@github.com git config user.email github-actions@github.com
git add . git add .
git commit -m ":bookmark: Release $(poetry version -s)" git commit -m ":bookmark: Release $(poetry version -s)"
git tag v$(poetry version -s) git tag ${{ env.TAG_NAME }}
git push && git push --tags git push && git push --tags

View File

@ -4,7 +4,7 @@ description: Changelog
# 更新日志 # 更新日志
## Latest Changes ## v2.0.0-beta.2
- 修复 `receive`, `got` 在参数为空消息时依旧会反复询问 - 修复 `receive`, `got` 在参数为空消息时依旧会反复询问
- 修复文档商店分页显示错误 - 修复文档商店分页显示错误
@ -17,7 +17,7 @@ description: Changelog
- 调整项目结构,分离内部定义与用户接口 - 调整项目结构,分离内部定义与用户接口
- 新增 Bot 连接事件钩子 (如 `driver.on_bot_connect` ) 的依赖注入 - 新增 Bot 连接事件钩子 (如 `driver.on_bot_connect` ) 的依赖注入
## v2.0.0b1 ## v2.0.0-beta.1
- 新增 `MessageTemplate` 对于 `str` 普通模板的支持 - 新增 `MessageTemplate` 对于 `str` 普通模板的支持
- 移除插件加载的 `NameSpace` 模式 - 移除插件加载的 `NameSpace` 模式