Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 0cf22c2

Browse files
chore: upgrade smenatic release
1 parent 52474bc commit 0cf22c2

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,21 @@ jobs:
4141
with:
4242
ref: ${{ github.ref }}
4343
fetch-depth: 0
44+
# This action uses Python Semantic Release v8
4445
- name: Python Semantic Release
45-
uses: relekang/python-semantic-release@master
46+
id: release
47+
uses: python-semantic-release/[email protected]
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
51+
- name: Publish package distributions to PyPI
52+
uses: pypa/gh-action-pypi-publish@release/v1
53+
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
54+
# See https://github.com/actions/runner/issues/1173
55+
if: steps.release.outputs.released == 'true'
56+
57+
- name: Publish package distributions to GitHub Releases
58+
uses: python-semantic-release/upload-to-gh-release@main
59+
if: steps.release.outputs.released == 'true'
4660
with:
4761
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
repository_username: __token__
49-
repository_password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)