Automated updating to beta and nightly versions (#425)

* Github actions

* Update firmware update and import/export

* Auto commit fixes
This commit is contained in:
iranl
2024-07-18 13:27:57 +02:00
committed by GitHub
parent eff4e57488
commit f4038f0429
5 changed files with 296 additions and 15 deletions

View File

@@ -6,7 +6,6 @@ on:
pull_request:
branches: ["*"]
tags: ["*"]
workflow_dispatch:
permissions:
@@ -96,7 +95,6 @@ jobs:
with:
name: ${{ format('{0}-{1}-assets', env.VARIANT, matrix.build) }}
path: ${{ matrix.build }}/${{ env.VARIANT }}
release:
name: Release new version
needs: build
@@ -109,7 +107,7 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
ref: ${{ github.head_ref }}
- name: Download release assets
uses: actions/download-artifact@v4
with:
@@ -168,16 +166,22 @@ jobs:
name: "Nuki Hub ${{ steps.get_version.outputs.VERSION }}"
artifacts: ${{ steps.zip.outputs.artifacts }}
artifactContentType: application/zip
- name: Copy binaries to ota and webflash
- name: Copy binaries to ota and webflash and remove beta
run: |
cp -vf release/*/nuki_hub_*.bin ota/
cp -vf release/*/webflash_nuki_hub_*.bin webflash/
rm -rf release
rm -rf debug
rm -rf NukiHub-*.zip
git rm -r --cached ota/beta/*.bin
- 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 webflash/*.bin'
file_pattern: 'ota/*.bin ota/beta/*.bin ota/beta/debug/*.bin webflash/*.bin'
branch: master
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
disable_globbing: true
add_options: '-f'