Skip to content

Commit

Permalink
ci: add changelog generator
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Dec 14, 2023
1 parent 7a32ebf commit d0bbe43
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions changelogithub.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"types": {
"break": { "title": "💥 Breaking Changes" },
"feat": { "title": "🚀 Features" },
"fix": { "title": "🐞 Bug Fixes" },
"doc": { "title": "📝 Documentation" },
"chore": { "title": "💻 Chores" }
}
}

0 comments on commit d0bbe43

Please sign in to comment.