Skip to content

Commit a462feb

Browse files
committedFeb 12, 2025
Fix permissions for github release CI
1 parent 3c390a2 commit a462feb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎.github/workflows/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
3434
with:
35-
token: "${{ github.token }}"
3635
# Fetch the entire git history (all branches + tags)
3736
# We do this because the docs use git describe, which requires having all
3837
# the commits up to the latest version tag.
@@ -90,4 +89,6 @@ jobs:
9089
# handle that without a conflict, but I haven't tested it).
9190
git fetch origin gh-pages
9291
git checkout gh-pages
92+
git branch --set-upstream-to=origin/gh-pages gh-pages
9393
git pull --rebase || { echo "Conflict detected, stopping."; exit 1; }
94+
git push

‎.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Publish to PyPI / GitHub
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- "v*"
@@ -51,6 +52,8 @@ jobs:
5152
name: "Publish a GitHub release"
5253
needs: build
5354
runs-on: ubuntu-latest
55+
permissions:
56+
id-token: write
5457

5558
steps:
5659
- name: Download the distribution files from PR artifact

0 commit comments

Comments
 (0)
Failed to load comments.