Skip to content

Commit

Permalink
Add CHANGELOG.md (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Oct 14, 2024
1 parent 5f3a600 commit 8d143b2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: publish

on:
release:
types: [published]
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+.post[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+[a-b][0-9]+"
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -145,14 +149,13 @@ jobs:
path: dist

pypi-release:
name: Publish to PyPI on Release
name: Publish to PyPI
runs-on: ubuntu-latest
needs:
- macos
- windows
- linux
- linux-cross
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -166,3 +169,20 @@ jobs:
run: |
pip install --upgrade twine
twine upload --skip-existing dist/*
github-release:
name: Create GitHub release
needs: pypi-release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- id: changelog
uses: agronholm/release-notes@v1
with:
path: CHANGELOG.md
version_pattern: ^\#\#([0-9][^*]*)
- uses: ncipollo/release-action@v1
with:
body: ${{ steps.changelog.outputs.changelog }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Version history

## 0.10.4

- Add `CHANGELOG.md` and automate release on tag.

## 0.10.3

0 comments on commit 8d143b2

Please sign in to comment.