diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 572a724..07f9df7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,12 @@ jobs: python -m pip install -U setuptools wheel build if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi pip install . + - name: Update changelog with snippets + run: | + changelog-generator \ + changelog changelog.md \ + --snippets=.snippets \ + --in-place - name: Parse changelog id: parse_changelog run: | diff --git a/.github/workflows/test-release.yaml b/.github/workflows/test-release.yaml index baabc3f..12709c9 100644 --- a/.github/workflows/test-release.yaml +++ b/.github/workflows/test-release.yaml @@ -24,6 +24,12 @@ jobs: python -m pip install -U setuptools wheel build if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi pip install . + - name: Update changelog with snippets + run: | + changelog-generator \ + changelog changelog.md \ + --snippets=.snippets \ + --in-place - name: Parse changelog id: parse_changelog run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1679334..adc8694 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,12 @@ jobs: python -m pip install -U setuptools wheel build if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi pip install . + - name: Update changelog with snippets + run: | + changelog-generator \ + changelog changelog.md \ + --snippets=.snippets \ + --in-place - name: Build package run: | changelog2version \ diff --git a/.snippets/26.md b/.snippets/26.md new file mode 100644 index 0000000..4963ffe --- /dev/null +++ b/.snippets/26.md @@ -0,0 +1,12 @@ +## Use snippets2changelog + + +- run isort on all files +- drop Python 3.8 support everywhere and update README badge +- add generated `changelog.json` file to `.gitignore` +- use latest `actions/checkout@v4` and `actions/setup-python@v5` +- use `snippets2changelog` package, closes #26 diff --git a/requirements-deploy.txt b/requirements-deploy.txt index f4cdfdb..643e30d 100644 --- a/requirements-deploy.txt +++ b/requirements-deploy.txt @@ -2,3 +2,4 @@ # Avoid fixed versions # # to upload package to PyPi or other package hosts twine>=5.1.1,<6 +snippets2changelog>=1.2.1,<2