@@ -68,13 +68,11 @@ jobs:
6868 packages : write
6969 environment :
7070 name : pypi
71- url : https://pypi.org/project/python-roborock/
7271
7372 steps :
7473 - uses : actions/checkout@v4
7574 with :
7675 fetch-depth : 0
77- persist-credentials : false
7876 - name : Set up Python 3.11
7977 uses : actions/setup-python@v5
8078 with :
@@ -85,18 +83,13 @@ jobs:
8583 - name : Install Dependencies
8684 run : poetry install
8785 shell : bash
88- - name : Configure Git for authentication
89- run : |
90- git config --global user.name "GitHub Actions"
91- git config --global user.email "actions@github.com"
92- git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
93-
9486 - name : Python Semantic Release
9587 id : release
9688 uses : python-semantic-release/python-semantic-release@v9.14.0
97- env :
98- GH_TOKEN : ${{ secrets.GH_TOKEN }}
99- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89+ with :
90+ github_token : ${{ secrets.GH_TOKEN }}
91+ git_committer_name : " github-actions"
92+ git_committer_email : " actions@users.noreply.github.com"
10093
10194 - name : Publish package distributions to PyPI
10295 uses : pypa/gh-action-pypi-publish@v1.12.2
@@ -109,4 +102,4 @@ jobs:
109102 uses : python-semantic-release/upload-to-gh-release@v8.7.0
110103 if : steps.release.outputs.released == 'true'
111104 with :
112- github_token : ${{ secrets.GITHUB_TOKEN }}
105+ github_token : ${{ secrets.GH_TOKEN }}
0 commit comments