mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Test workflow
This commit is contained in:
parent
75eac9f432
commit
5470d99c7a
13
.github/workflows/test.yaml
vendored
13
.github/workflows/test.yaml
vendored
@ -41,5 +41,16 @@ jobs:
|
|||||||
- name: Upload output file
|
- name: Upload output file
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Upload firmware
|
name: hasp-lvgl firmware.zip
|
||||||
path: build_output/firmware/*.bin
|
path: build_output/firmware/*.bin
|
||||||
|
- name: Create release and upload firmware
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
assets=()
|
||||||
|
for asset in build_output/firmware/*.bin; do
|
||||||
|
assets+=("-a" "$asset")
|
||||||
|
done
|
||||||
|
tag_name="${GITHUB_REF##*/}"
|
||||||
|
hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user