Skip to content

Commit 2a1caa3

Browse files
Change workflow: add permissions to write for the token for documentation
Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
1 parent 61dd436 commit 2a1caa3

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/documentation.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
workflow_dispatch:
9+
810
jobs:
911
generate-reference:
1012
runs-on: ubuntu-latest
@@ -38,10 +40,16 @@ jobs:
3840
path: ${{ github.workspace }}/reference
3941
name: reference-cache
4042
retention-days: 1
41-
43+
4244
deploy:
4345
runs-on: ubuntu-latest
4446
needs: [generate-reference]
47+
48+
permissions:
49+
pages: write
50+
id-token: write
51+
contents: write
52+
4553
steps:
4654
- uses: actions/checkout@v4
4755

@@ -81,7 +89,8 @@ jobs:
8189
- name: Deploy page
8290
uses: peaceiris/actions-gh-pages@v4
8391
with:
84-
github_token: ${{ secrets.GITHUB_TOKEN }}
92+
github_token: ${{ secrets.GITHUB_TOKEN }}
8593
publish_dir: ./public
86-
# keep_files: true
87-
publish_branch: gh-pages
94+
publish_branch: gh-pages
95+
user_name: 'github-actions[bot]'
96+
user_email: 'github-actions[bot]@users.noreply.github.com'

0 commit comments

Comments
 (0)