From 82f28cb5bc38144cdaab1e870338addf8585e39f Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Wed, 9 Apr 2025 23:43:50 +0200 Subject: [PATCH] Fix webinstaller update (#3697) * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml --- .github/workflows/build.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fa2d2330..2fb833bb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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!