Skip to content

Commit 88c42d3

Browse files
committed
ci: fix inability to commit with branch protections in place
1 parent 3ed4f4a commit 88c42d3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/cd-release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
group: ${{ github.workflow }}-release-${{ github.ref_name }}
2929
cancel-in-progress: false
3030

31+
environment: release
3132
permissions:
3233
contents: write
3334

@@ -41,6 +42,7 @@ jobs:
4142
- name: Setup | Checkout Repository on Release Branch
4243
uses: actions/checkout@v4
4344
with:
45+
token: ${{ secrets.PYTHON_SEMANTIC_RELEASE_TOKEN }}
4446
ref: ${{ github.ref_name }}
4547
fetch-depth: 0
4648

@@ -92,15 +94,15 @@ jobs:
9294
# Adjust tag with desired version if applicable.
9395
uses: python-semantic-release/python-semantic-release@v10.4.1
9496
with:
95-
github_token: ${{ secrets.GITHUB_TOKEN }}
97+
github_token: ${{ secrets.PYTHON_SEMANTIC_RELEASE_TOKEN }}
9698
git_committer_name: "github-actions"
9799
git_committer_email: "actions@users.noreply.github.com"
98100

99101
- name: Publish | Upload to GitHub Release Assets
100102
uses: python-semantic-release/publish-action@v10.4.1
101103
if: steps.release.outputs.released == 'true'
102104
with:
103-
github_token: ${{ secrets.GITHUB_TOKEN }}
105+
github_token: ${{ secrets.PYTHON_SEMANTIC_RELEASE_TOKEN }}
104106
tag: ${{ steps.release.outputs.tag }}
105107

106108
- name: Upload | Distribution Artifacts

0 commit comments

Comments
 (0)