Skip to content

Commit

Permalink
Auto-create GitHub release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
skogler committed Aug 3, 2024
1 parent b5e4705 commit 1e1f5e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,15 @@ jobs:
with:
path: dist
merge-multiple: true
- name: Extract Changelog
run: |
VERSION=${GITHUB_REF#refs/*/}
sed -n "/^## \\[${VERSION:1}\\]/,/^## \\[/p" CHANGELOG.md | sed '1,1d; $d' > RELEASE.md
- name: Publish release to GitHub
uses: softprops/action-gh-release@v2
with:
draft: true
body_path: RELEASE.md
files: dist/*.whl
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 1e1f5e9

Please sign in to comment.