mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
Fix webinstaller update (#3697)
* Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml
This commit is contained in:
16
.github/workflows/build.yaml
vendored
16
.github/workflows/build.yaml
vendored
@@ -1,6 +1,10 @@
|
|||||||
name: Build and Pack
|
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:
|
jobs:
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
@@ -304,7 +308,7 @@ jobs:
|
|||||||
prepare-release:
|
prepare-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [pack-for-update, pack-for-manual_setup, pack-for-remote_setup]
|
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
|
# Sets permissions of the GITHUB_TOKEN to allow updating the branches
|
||||||
permissions:
|
permissions:
|
||||||
@@ -406,7 +410,7 @@ jobs:
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
# Make sure to also update update-webinstaller.yml!
|
# Make sure to also update update-webinstaller.yml!
|
||||||
update-web-installer:
|
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]
|
needs: [prepare-release]
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
@@ -444,13 +448,13 @@ jobs:
|
|||||||
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
|
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: 'webinstaller'
|
path: 'webinstaller'
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v3 # Note: v4 does not work!
|
uses: actions/deploy-pages@v4.0.5 # Note: v4 does not work!
|
||||||
|
|||||||
Reference in New Issue
Block a user