korrekture Release
This commit is contained in:
1 parent
ea79561bcf
commit
aca45ee021
1 file changed
+19
-4
@@ -86,16 +86,31 @@ jobs:
|
|||||||
path: firmware/winde
|
path: firmware/winde
|
||||||
- name: Verify release assets
|
- name: Verify release assets
|
||||||
run: |
|
run: |
|
||||||
test -n "$(find firmware -type f -name 'firmware_*.bin' -print -quit)"
|
RELEASE_VERSION="${{ gitea.ref_name }}"
|
||||||
test -n "$(find firmware -type f -name '*.sha256' -print -quit)"
|
SAILPLANE_FILE=$(find firmware/sailplane -type f -name 'firmware_*.bin' -print -quit)
|
||||||
|
WINDE_FILE=$(find firmware/winde -type f -name 'firmware_*.bin' -print -quit)
|
||||||
|
test -n "$SAILPLANE_FILE"
|
||||||
|
test -n "$WINDE_FILE"
|
||||||
|
cp "$SAILPLANE_FILE" "firmware/firmware_sailplane_${RELEASE_VERSION}.bin"
|
||||||
|
cp "$WINDE_FILE" "firmware/firmware_winde_${RELEASE_VERSION}.bin"
|
||||||
|
(cd firmware && sha256sum "firmware_sailplane_${RELEASE_VERSION}.bin" > "firmware_sailplane_${RELEASE_VERSION}.sha256")
|
||||||
|
(cd firmware && sha256sum "firmware_winde_${RELEASE_VERSION}.bin" > "firmware_winde_${RELEASE_VERSION}.sha256")
|
||||||
|
test -s "firmware/firmware_sailplane_${RELEASE_VERSION}.bin"
|
||||||
|
test -s "firmware/firmware_winde_${RELEASE_VERSION}.bin"
|
||||||
|
test -s "firmware/firmware_sailplane_${RELEASE_VERSION}.sha256"
|
||||||
|
test -s "firmware/firmware_winde_${RELEASE_VERSION}.sha256"
|
||||||
|
(cd firmware && sha256sum -c "firmware_sailplane_${RELEASE_VERSION}.sha256")
|
||||||
|
(cd firmware && sha256sum -c "firmware_winde_${RELEASE_VERSION}.sha256")
|
||||||
test -s LICENSE
|
test -s LICENSE
|
||||||
test -s THIRD_PARTY_NOTICES.md
|
test -s THIRD_PARTY_NOTICES.md
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: akkuman/gitea-release-action@5a83c90484ef4355121df5eb60558c8ce66e81ac # v1
|
uses: akkuman/gitea-release-action@5a83c90484ef4355121df5eb60558c8ce66e81ac # v1
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
firmware/**/*.bin
|
firmware/firmware_sailplane_${{ gitea.ref_name }}.bin
|
||||||
firmware/**/*.sha256
|
firmware/firmware_winde_${{ gitea.ref_name }}.bin
|
||||||
|
firmware/firmware_sailplane_${{ gitea.ref_name }}.sha256
|
||||||
|
firmware/firmware_winde_${{ gitea.ref_name }}.sha256
|
||||||
LICENSE
|
LICENSE
|
||||||
THIRD_PARTY_NOTICES.md
|
THIRD_PARTY_NOTICES.md
|
||||||
body_path: "CHANGELOG.md"
|
body_path: "CHANGELOG.md"
|
||||||
Reference in new issue
Block a user