Improve Webflash

This commit is contained in:
iranl
2025-04-13 21:46:26 +02:00
parent cc118edbfb
commit ea192d3c0d
5 changed files with 111 additions and 51 deletions

View File

@@ -113,23 +113,22 @@ jobs:
run: |
mkdir -p ota/beta/
mkdir -p ota/master/
mkdir -p webflash/
mkdir -p resources/
mkdir -p src/
cp -vf release/*/nuki_hub_*.bin ota/beta/
cp -vf master/resources/ota_manifest.py resources/ota_manifest.py
cp -vf master/src/Config.h src/Config.h
python3 resources/ota_manifest.py beta $Version
find * -not -path "ota*" -not -path "webflash*" -delete
find * -not -path "ota*" -delete
rm -rf .github .gitignore .gitmodules
touch ota/beta/empty
touch ota/beta/dummy.bin
touch ota/master/empty
touch webflash/empty
- name: Commit binaries to binary
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update binaries"
file_pattern: 'ota/* ota/master/* ota/beta/* webflash/*'
file_pattern: 'ota/* ota/master/* ota/beta/*'
branch: binary
skip_dirty_check: true
skip_fetch: true

View File

@@ -136,23 +136,21 @@ jobs:
run: |
mkdir -p ota/beta/
mkdir -p ota/master/
mkdir -p webflash/
mkdir -p resources/
mkdir -p src/
cp -vf release/*/nuki_hub_*.bin ota/master/
cp -vf master/resources/ota_manifest.py resources/ota_manifest.py
cp -vf master/src/Config.h src/Config.h
python3 resources/ota_manifest.py master $Version
find * -not -path "ota*" -not -path "webflash*" -delete
find * -not -path "ota*" -delete
rm -rf .github .gitignore .gitmodules
touch ota/beta/empty
touch ota/master/empty
touch webflash/empty
- name: Commit binaries to binary
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update binaries"
file_pattern: 'ota/* ota/master/* ota/beta/* webflash/*'
file_pattern: 'ota/* ota/master/* ota/beta/*'
branch: binary
skip_dirty_check: true
skip_fetch: true

View File

@@ -124,7 +124,7 @@ jobs:
echo "${FOLDER} -- ${ZIPFILE}"
cd $FOLDER
zip -9r ../../${ZIPFILE} * -x "webflash_nuki_hub_*.bin"
zip -9r ../../${ZIPFILE} *
ARTIFACTS="${ARTIFACTS}${ZIPFILE},"
cd ../..
@@ -148,13 +148,12 @@ jobs:
artifacts: ${{ steps.zip.outputs.artifacts }}
artifactContentType: application/zip
tag: ${{ steps.get_version.outputs.VERSION }}
- name: Copy binaries to ota and webflash and remove beta
- name: Copy binaries to ota and remove beta
env:
Version: ${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}
run: |
mkdir -p ota/beta/
mkdir -p ota/master/
mkdir -p webflash/
mkdir -p resources/
mkdir -p src/
cp -vf release/*/nuki_hub_*.bin ota/
@@ -162,17 +161,16 @@ jobs:
cp -vf master/src/Config.h src/Config.h
python3 resources/ota_manifest.py release $Version
python3 resources/ota_manifest.py beta none
find * -not -path "ota*" -not -path "webflash*" -delete
find * -not -path "ota*" -delete
rm -rf ota/beta/*.bin
rm -rf .github .gitignore .gitmodules
touch ota/beta/empty
touch ota/master/empty
touch webflash/empty
- name: Commit binaries to binary
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update binaries"
file_pattern: 'ota/* ota/master/* ota/beta/* webflash/*'
file_pattern: 'ota/* ota/master/* ota/beta/*'
branch: binary
skip_dirty_check: true
skip_fetch: true