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'
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:
</html>
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