Update windows-build.yml

This commit is contained in:
Laurent Trinques
2026-05-13 00:40:17 +02:00
committed by GitHub
parent 61319bbbd6
commit f6b93c6b71

View File

@@ -366,14 +366,10 @@ jobs:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
permissions: permissions:
contents: write contents: write
pages: write
id-token: write
steps: steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Download installer artifact - name: Download installer artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@@ -607,14 +603,13 @@ jobs:
</html> </html>
HTMLEOF HTMLEOF
- name: Commit and push to gh-pages - name: Add .nojekyll to disable Jekyll processing
run: | run: touch gh-pages/.nojekyll
cd gh-pages
# Disable Jekyll so GitHub Pages serves index.html as-is - name: Upload GitHub Pages artifact
touch .nojekyll uses: actions/upload-pages-artifact@v3
git config user.name "github-actions[bot]" with:
git config user.email "github-actions[bot]@users.noreply.github.com" path: gh-pages/
git add .nojekyll index.html
git diff --staged --quiet \ - name: Deploy to GitHub Pages
|| git commit -m "nightly: build #${{ github.run_number }} (${{ github.sha }})" uses: actions/deploy-pages@v4
git push origin gh-pages