From d0bbe43a8181c83c1af24b30e78e1929adfe1cb8 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 14 Dec 2023 10:10:27 +0800 Subject: [PATCH] ci: add changelog generator Signed-off-by: Frost Ming --- .github/workflows/pythonpublish.yml | 18 +++++++++++------- changelogithub.config.json | 9 +++++++++ 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 changelogithub.config.json diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 1c56763..7770820 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -15,16 +15,20 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 + - uses: actions/setup-node@v3 with: - python-version: '3.10' - - uses: pdm-project/setup-pdm@v3 - name: Install PDM + node-version: 18 + + - run: npx changelogithub + continue-on-error: true + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Set up Python 3.8 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Build package run: | - pdm build + pipx run build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/changelogithub.config.json b/changelogithub.config.json new file mode 100644 index 0000000..83ecacf --- /dev/null +++ b/changelogithub.config.json @@ -0,0 +1,9 @@ +{ + "types": { + "break": { "title": "💥 Breaking Changes" }, + "feat": { "title": "🚀 Features" }, + "fix": { "title": "🐞 Bug Fixes" }, + "doc": { "title": "📝 Documentation" }, + "chore": { "title": "💻 Chores" } + } +}