Skip to content

Commit 63015c3

Browse files
author
Anonymous Committer
committed
chore: update release workflow to use softprops/action-gh-release and add skip-existing flag for PyPI
1 parent 8edb7c4 commit 63015c3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ jobs:
8787

8888
- name: Publish to PyPI
8989
uses: pypa/gh-action-pypi-publish@release/v1
90+
with:
91+
skip-existing: true
9092

9193
- name: Create GitHub release
92-
env:
93-
GH_TOKEN: ${{ github.token }}
94-
GITHUB_REF_NAME: ${{ github.ref_name }}
95-
run: gh release create "$GITHUB_REF_NAME" dist/* --generate-notes --title "$GITHUB_REF_NAME"
94+
uses: softprops/action-gh-release@v2
95+
with:
96+
tag_name: ${{ github.ref_name }}
97+
name: ${{ github.ref_name }}
98+
files: dist/*
99+
generate_release_notes: true

0 commit comments

Comments
 (0)