Skip to content

Commit 139aeac

Browse files
authored
Automatic Changelog (#213)
* automatic changelog * add changelog to docs
1 parent b84ba1c commit 139aeac

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

Diff for: .github/workflows/post-release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Post-release
2+
on:
3+
release:
4+
types: [published, released]
5+
workflow_dispatch:
6+
7+
jobs:
8+
changelog:
9+
name: Update changelog
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
ref: main
15+
- uses: rhysd/changelog-from-release/action@v3
16+
with:
17+
file: CHANGELOG.md
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
commit_summary_template: 'update changelog for %s changes'

Diff for: CHANGELOG.md

Whitespace-only changes.

Diff for: docs/changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Changelog
2+
*********
3+
4+
.. include:: ../CHANGELOG.md
5+
:parser: myst_parser.sphinx_

Diff for: docs/index.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ Contents
9393
:maxdepth: 2
9494

9595
examples
96-
api_reference
9796

98-
Indices
99-
=======
97+
References
98+
==========
99+
100+
.. toctree::
101+
:maxdepth: 1
100102

101-
* :ref:`genindex`
102-
* :ref:`modindex`
103+
api_reference
104+
changelog

0 commit comments

Comments
 (0)