@@ -68,13 +68,11 @@ jobs:
68
68
packages : write
69
69
environment :
70
70
name : pypi
71
- url : https://pypi.org/project/python-roborock/
72
71
73
72
steps :
74
73
- uses : actions/checkout@v4
75
74
with :
76
75
fetch-depth : 0
77
- persist-credentials : false
78
76
- name : Set up Python 3.11
79
77
uses : actions/setup-python@v5
80
78
with :
@@ -85,18 +83,13 @@ jobs:
85
83
- name : Install Dependencies
86
84
run : poetry install
87
85
shell : bash
88
- - name : Configure Git for authentication
89
- run : |
90
- git config --global user.name "GitHub Actions"
91
- git config --global user.email "[email protected] "
92
- git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
93
-
94
86
- name : Python Semantic Release
95
87
id : release
96
88
uses :
python-semantic-release/[email protected]
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 :
" [email protected] "
100
93
101
94
- name : Publish package distributions to PyPI
102
95
@@ -109,4 +102,4 @@ jobs:
109
102
uses :
python-semantic-release/[email protected]
110
103
if : steps.release.outputs.released == 'true'
111
104
with :
112
- github_token : ${{ secrets.GITHUB_TOKEN }}
105
+ github_token : ${{ secrets.GH_TOKEN }}
0 commit comments