Skip to content

Commit d212d9b

Browse files
RoyLinRoyLin
authored andcommitted
ci(publish-python): use softprops/action-gh-release (publish job has no checkout → gh CLI failed)
1 parent 2bb45a7 commit d212d9b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/publish-python.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
echo "PYPI_API_TOKEN not set — skipping PyPI; wheels still ship to the GitHub Release."
5252
fi
5353
- name: GitHub Release
54-
env:
55-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
run: |
57-
gh release create "$GITHUB_REF_NAME" dist/* --title "Python SDK $GITHUB_REF_NAME" --generate-notes \
58-
|| gh release upload "$GITHUB_REF_NAME" dist/* --clobber
54+
uses: softprops/action-gh-release@v2
55+
with:
56+
files: dist/*
57+
name: Python SDK ${{ github.ref_name }}
58+
generate_release_notes: true

0 commit comments

Comments
 (0)