Automated updating to beta and nightly versions (#425)
* Github actions * Update firmware update and import/export * Auto commit fixes
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -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'
|
||||
Reference in New Issue
Block a user