Skip to content

Commit c4df49b

Browse files
committed
fix(ci): use python-semantic-release v10 with publish-action
1 parent 313b6e9 commit c4df49b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,21 @@ jobs:
2828
fetch-depth: 0
2929
ref: ${{ github.ref_name }}
3030

31+
- name: Force branch to workflow SHA
32+
run: git reset --hard ${{ github.sha }}
33+
3134
- name: Python Semantic Release
3235
id: release
33-
uses: python-semantic-release/python-semantic-release@v9.15.2
36+
uses: python-semantic-release/python-semantic-release@v10.5.2
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Publish to GitHub Release
41+
uses: python-semantic-release/publish-action@v10.5.2
42+
if: steps.release.outputs.released == 'true'
3443
with:
3544
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
env:
37-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
tag: ${{ steps.release.outputs.tag }}
3846

3947
docker:
4048
needs: release

0 commit comments

Comments
 (0)