mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Update asset upload on release
This commit is contained in:
parent
962b01d91f
commit
d6f3b52911
27
.github/workflows/build.yaml
vendored
27
.github/workflows/build.yaml
vendored
@ -103,17 +103,22 @@ jobs:
|
||||
name: ${{ matrix.environment.out }}
|
||||
path: build_output/firmware/*.*n
|
||||
- name: Create release and upload firmware
|
||||
if: github.ref != 'refs/heads/master'
|
||||
run: |
|
||||
set -x
|
||||
assets=()
|
||||
for asset in build_output/firmware/*.bin; do
|
||||
assets+=("-a" "$asset")
|
||||
done
|
||||
tag_name="${GITHUB_REF##*/}"
|
||||
hub release edit "${assets[@]}" -m "$tag_name" "$tag_name"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: AButler/upload-release-assets@v3.0
|
||||
with:
|
||||
files: "build_output/firmware/*.bin"
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Create release and upload firmware
|
||||
# if: github.ref != 'refs/heads/master'
|
||||
# run: |
|
||||
# set -x
|
||||
# assets=()
|
||||
# for asset in build_output/firmware/*.bin; do
|
||||
# assets+=("-a" "$asset")
|
||||
# done
|
||||
# tag_name="${GITHUB_REF##*/}"
|
||||
# hub release edit "${assets[@]}" -m "$tag_name" "$tag_name"
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
#- name: Create release and upload firmware
|
||||
# run: |
|
||||
# set -x
|
||||
|
Loading…
x
Reference in New Issue
Block a user