Skip to content

Commit af94184

Browse files
committed
Create a github release on tag
1 parent 6d5ffa7 commit af94184

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ jobs:
2020
uses: pypa/gh-action-pypi-publish@release/v1
2121
with:
2222
password: ${{ secrets.PYPI_PASSWORD }}
23+
- name: Create a GitHub release
24+
if: startsWith(github.ref, 'refs/tags')
25+
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)