Skip to content

Commit d0bbe02

Browse files
committed
fix: update deploy-docs.yml to set permissions and adjust publish settings
1 parent a336e21 commit d0bbe02

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ on:
55
branches: [ main ]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
deploy:
1013
runs-on: ubuntu-latest
1114

1215
steps:
1316
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1419

1520
- name: Set up Python
1621
uses: actions/setup-python@v5
@@ -31,4 +36,5 @@ jobs:
3136
uses: peaceiris/actions-gh-pages@v3
3237
with:
3338
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./site
39+
publish_dir: ./site
40+
publish_branch: gh-pages

0 commit comments

Comments
 (0)