Skip to content

Commit

Permalink
fix: hopefully finalize semantic release (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L authored Nov 18, 2024
1 parent e100ab3 commit 481f01d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ jobs:
packages: write
environment:
name: pypi
url: https://pypi.org/project/python-roborock/

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
Expand All @@ -85,18 +83,13 @@ jobs:
- name: Install Dependencies
run: poetry install
shell: bash
- name: Configure Git for authentication
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github_token: ${{ secrets.GH_TOKEN }}
git_committer_name: "github-actions"
git_committer_email: "[email protected]"

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

0 comments on commit 481f01d

Please sign in to comment.