Skip to content

Commit ed8f899

Browse files
committed
Create a GH release during deploy
1 parent cb5a922 commit ed8f899

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ jobs:
4141
- name: Publish package to PyPI
4242
uses: pypa/[email protected]
4343

44-
- name: Push tag
44+
- name: GitHub Release
45+
env:
46+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4547
run: |
46-
git config user.name "pytest bot"
47-
git config user.email "[email protected]"
48-
git tag --annotate --message=v${{ github.event.inputs.version }} v${{ github.event.inputs.version }} ${{ github.sha }}
49-
git push origin v${{ github.event.inputs.version }}
48+
gh release create v${{ github.event.inputs.version }} --target=${{ github.ref_name }} --generate-notes

0 commit comments

Comments
 (0)