OTA manifest (#426)

This commit is contained in:
iranl
2024-07-19 11:38:00 +02:00
committed by GitHub
parent ebf42bd7d0
commit 9b9a87e41c
7 changed files with 63 additions and 4 deletions

View File

@@ -108,11 +108,12 @@ jobs:
mkdir -p ota/beta/
cp -vf release/*/nuki_hub_*.bin ota/beta/
rm -rf release
python3 resources/ota_manifest.py beta $Version
- name: Commit binaries to master
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update beta binaries"
file_pattern: 'ota/beta/*.bin'
file_pattern: 'ota/beta/*.bin ota/manifest.json'
branch: master
skip_dirty_check: true
skip_fetch: true

View File

@@ -166,6 +166,9 @@ jobs:
name: "Nuki Hub ${{ steps.get_version.outputs.VERSION }}"
artifacts: ${{ steps.zip.outputs.artifacts }}
artifactContentType: application/zip
- name: Add version info
env:
Version: ${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}
- name: Copy binaries to ota and webflash and remove beta
run: |
cp -vf release/*/nuki_hub_*.bin ota/
@@ -174,11 +177,13 @@ jobs:
rm -rf debug
rm -rf NukiHub-*.zip
git rm -r --cached ota/beta/*.bin
python3 resources/ota_manifest.py release $Version
python3 resources/ota_manifest.py beta none
- name: Commit binaries to master
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update binaries for version ${{ steps.get_version.outputs.VERSION }}"
file_pattern: 'ota/*.bin ota/beta/*.bin ota/beta/debug/*.bin webflash/*.bin'
file_pattern: 'ota/*.bin ota/manifest.json ota/beta/*.bin webflash/*.bin'
branch: master
skip_dirty_check: true
skip_fetch: true

View File

@@ -115,11 +115,12 @@ jobs:
mkdir -p ota/master/
cp -vf release/*/nuki_hub_*.bin ota/master/
rm -rf release
python3 resources/ota_manifest.py master $Version
- name: Commit binaries to master
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update master binaries"
file_pattern: 'ota/master/*.bin'
file_pattern: 'ota/master/*.bin ota/manifest.json'
branch: master
skip_dirty_check: true
skip_fetch: true