Commit ff3fea6
committed
fix(ci): update GitHub Pages deployment to use newer actions and permissions
- Add explicit permissions for GitHub Pages deployment:
- contents: read - for repository access
- pages: write - for Pages deployment
- id-token: write - for secure authentication
- Replace deprecated peaceiris/actions-gh-pages with modern GitHub Actions:
- actions/configure-pages@v4 for Pages setup
- actions/upload-pages-artifact@v3 for artifact upload
- actions/deploy-pages@v4 for deployment
- Add github-pages environment configuration for proper deployment tracking
This resolves the "Permission denied" error when deploying documentation
to GitHub Pages. The new approach uses GitHub's built-in authentication
instead of requiring manual token configuration.
Fixes: remote: Permission to OpenPRoT/openprot.git denied to github-actions[bot]1 parent 91dd4d8 commit ff3fea6
1 file changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | | - | |
| 58 | + | |
47 | 59 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments