Fix webinstaller update (#3697)

* Update build.yaml

* Update build.yaml

* Update build.yaml

* Update build.yaml
This commit is contained in:
CaCO3
2025-04-09 23:43:50 +02:00
committed by GitHub
parent 34818c0dc1
commit 82f28cb5bc

View File

@@ -1,6 +1,10 @@
name: Build and Pack
on: [push, pull_request]
on:
push:
pull_request:
release:
types: [released] # Only trigger on published releases (not drafts or pre-released)
jobs:
#########################################################################################
@@ -304,7 +308,7 @@ jobs:
prepare-release:
runs-on: ubuntu-latest
needs: [pack-for-update, pack-for-manual_setup, pack-for-remote_setup]
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release' # Only run when the trigger is a release
# Sets permissions of the GITHUB_TOKEN to allow updating the branches
permissions:
@@ -406,7 +410,7 @@ jobs:
#########################################################################################
# Make sure to also update update-webinstaller.yml!
update-web-installer:
if: github.event_name == 'release' && github.event.action == 'published' # Only run on release but not on prerelease
if: github.event_name == 'release' # Only run when the trigger is a release
needs: [prepare-release]
environment:
name: github-pages
@@ -444,13 +448,13 @@ jobs:
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: 'webinstaller'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3 # Note: v4 does not work!
uses: actions/deploy-pages@v4.0.5 # Note: v4 does not work!