Skip to content

Commit

Permalink
Automatic Changelog (#213)
Browse files Browse the repository at this point in the history
* automatic changelog

* add changelog to docs
  • Loading branch information
aloctavodia authored Dec 28, 2024
1 parent b84ba1c commit 139aeac
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Post-release
on:
release:
types: [published, released]
workflow_dispatch:

jobs:
changelog:
name: Update changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: rhysd/changelog-from-release/action@v3
with:
file: CHANGELOG.md
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_summary_template: 'update changelog for %s changes'
Empty file added CHANGELOG.md
Empty file.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Changelog
*********

.. include:: ../CHANGELOG.md
:parser: myst_parser.sphinx_
12 changes: 7 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ Contents
:maxdepth: 2

examples
api_reference

Indices
=======
References
==========

.. toctree::
:maxdepth: 1

* :ref:`genindex`
* :ref:`modindex`
api_reference
changelog

0 comments on commit 139aeac

Please sign in to comment.