Skip to content

Commit 9b3fc77

Browse files
committed
update docs settings
1 parent 89c484e commit 9b3fc77

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
# .github/workflows/docs.yml
22
name: Build and Deploy Documentation
3-
43
on:
54
push:
65
branches: [ main, master ]
76
pull_request:
87
branches: [ main, master ]
98

9+
# Add permissions for GitHub Pages deployment
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
1015
jobs:
1116
docs:
1217
runs-on: ubuntu-latest
1318

1419
steps:
15-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4 # Updated to v4
1621

1722
- name: Set up Python
1823
uses: actions/setup-python@v4
@@ -31,7 +36,7 @@ jobs:
3136
3237
- name: Deploy to GitHub Pages
3338
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
34-
uses: peaceiris/actions-gh-pages@v3
39+
uses: peaceiris/actions-gh-pages@v4 # Updated to v4
3540
with:
3641
github_token: ${{ secrets.GITHUB_TOKEN }}
3742
publish_dir: ./docs/_build/html

0 commit comments

Comments
 (0)