File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# .github/workflows/docs.yml
22name : Build and Deploy Documentation
3-
43on :
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+
1015jobs :
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
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
You can’t perform that action at this time.
0 commit comments