OTA manifest (#426)
This commit is contained in:
3
.github/workflows/beta.yml
vendored
3
.github/workflows/beta.yml
vendored
@@ -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
|
||||
|
||||
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
3
.github/workflows/nightly.yml
vendored
3
.github/workflows/nightly.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user