Skip to content

Commit 90b7c54

Browse files
author
Vladimir Vilimaitis
committed
Create GitHub release after PyPI publish
1 parent 26f438d commit 90b7c54

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,26 @@ jobs:
198198
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
199199
with:
200200
packages-dir: dist
201+
202+
github-release:
203+
name: GitHub release
204+
needs: publish
205+
if: startsWith(github.ref, 'refs/tags/')
206+
runs-on: ubuntu-latest
207+
permissions:
208+
contents: write
209+
210+
steps:
211+
- uses: actions/download-artifact@v4
212+
with:
213+
path: dist
214+
merge-multiple: true
215+
216+
- name: Create GitHub release
217+
env:
218+
GH_TOKEN: ${{ github.token }}
219+
run: >-
220+
gh release create "$GITHUB_REF_NAME" dist/*
221+
--repo "$GITHUB_REPOSITORY"
222+
--title "$GITHUB_REF_NAME"
223+
--generate-notes

0 commit comments

Comments
 (0)