mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-13 21:39:59 +02:00
Update windows-build.yml
This commit is contained in:
29
.github/workflows/windows-build.yml
vendored
29
.github/workflows/windows-build.yml
vendored
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user