Skip to content

Commit

Permalink
build: Generate template of release note by age-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Apr 14, 2024
1 parent 71a6ea2 commit 6a7b983
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .age.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ Others
ver {{current_version}}
===={% for _ in current_version %}={% endfor %}
"""

# This file has other replace target, but currently not supported.
[[files]]
path = ".github/release-body.md"
regex = true
search = """
(.+)
- Changelog is https://github.com/attakei/sphinx-revealjs/blob/v{{current_version}}/CHANGELOG.rst
- Source changes is (.+)
"""
replace = """
REWRITE HERE
- Changelog is https://github.com/attakei/sphinx-revealjs/blob/v{{new_version}}/CHANGELOG.rst
- Source changes is https://github.com/attakei/sphinx-revealjs/compare/v{{current_version}}...v{{new_version}}
"""
4 changes: 4 additions & 0 deletions .github/release-body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Clean up deprecated.

- Changelog is https://github.com/attakei/sphinx-revealjs/blob/v3.0.0/CHANGELOG.rst
- Source changes is https://github.com/attakei/sphinx-revealjs/compare/v2.9.3...v3.0.0
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: dist-packages
Expand All @@ -77,6 +78,7 @@ jobs:
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body_path: .github/release-body.md
body: |
To know update details, please see [Changelog](https://sphinx-revealjs.readthedocs.io/en/stable/changes/) of documentation.
draft: false
Expand Down

0 comments on commit 6a7b983

Please sign in to comment.