From d141bd388ab5d00b84d9bcd5dc28daa03f2850f0 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 12 Jan 2026 18:22:20 +0100 Subject: [PATCH] set write permisison --- .github/workflows/build_documentation.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index e03d1165a..7b7c6ff69 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -9,9 +9,9 @@ env: BUILD_TYPE: RELEASE permissions: - contents: read - pages: write - id-token: write + contents: write # Required to push to gh-pages branch + pages: write # Required for GitHub Pages deployment + id-token: write # Required for GitHub Pages deployment jobs: build-and-deploy: @@ -27,6 +27,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history for proper git operations + token: ${{ secrets.GITHUB_TOKEN }} # Use the default token - name: Install System Packages uses: awalsh128/cache-apt-pkgs-action@latest @@ -76,13 +79,13 @@ jobs: git push origin gh-pages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - + + +