From 44f5d030e88fd6b7886f71bfb36784753f56c12f Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 14 Nov 2024 10:33:12 -0500 Subject: [PATCH 1/2] fix: update_gh_token --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4816292..56ad274 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,11 @@ 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 "actions@github.com" + git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }} - name: Python Semantic Release id: release From d989a8c2e1cf3c4cf0dfa93611bd173aae848e56 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 14 Nov 2024 22:28:33 -0500 Subject: [PATCH 2/2] fix: hopefully finalize semantic release --- .github/workflows/ci.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56ad274..eef1599 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 "actions@github.com" - 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/python-semantic-release@v9.14.0 - 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: "actions@users.noreply.github.com" - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@v1.12.2 @@ -109,4 +102,4 @@ jobs: uses: python-semantic-release/upload-to-gh-release@v8.7.0 if: steps.release.outputs.released == 'true' with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GH_TOKEN }}