Skip to content

Commit 481f01d

Browse files
authored
fix: hopefully finalize semantic release (#244)
1 parent e100ab3 commit 481f01d

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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 "[email protected]"
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/[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]"
10093

10194
- name: Publish package distributions to PyPI
10295
uses: pypa/[email protected]
@@ -109,4 +102,4 @@ jobs:
109102
uses: python-semantic-release/[email protected]
110103
if: steps.release.outputs.released == 'true'
111104
with:
112-
github_token: ${{ secrets.GITHUB_TOKEN }}
105+
github_token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)