From f6b93c6b717d6172519246aa9d8e5b695b3d7166 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Wed, 13 May 2026 00:40:17 +0200 Subject: [PATCH] Update windows-build.yml --- .github/workflows/windows-build.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 305c8db21..ddb3fe8e4 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -366,14 +366,10 @@ jobs: if: github.event_name != 'pull_request' permissions: contents: write + pages: write + id-token: write steps: - - name: Checkout gh-pages branch - uses: actions/checkout@v4 - with: - ref: gh-pages - path: gh-pages - - name: Download installer artifact uses: actions/download-artifact@v4 with: @@ -607,14 +603,13 @@ jobs: HTMLEOF - - name: Commit and push to gh-pages - run: | - cd gh-pages - # Disable Jekyll so GitHub Pages serves index.html as-is - touch .nojekyll - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add .nojekyll index.html - git diff --staged --quiet \ - || git commit -m "nightly: build #${{ github.run_number }} (${{ github.sha }})" - git push origin gh-pages + - name: Add .nojekyll to disable Jekyll processing + run: touch gh-pages/.nojekyll + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: gh-pages/ + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4