From 1adde48470d7b310f89a45089a4e9654865b9471 Mon Sep 17 00:00:00 2001 From: Coela Can't! <77935580+coelacant1@users.noreply.github.com> Date: Sun, 22 Dec 2024 10:26:15 -0500 Subject: [PATCH] Testing release with multiple assets, and using direct link to builds Fixed for future releases to not link to past releases --- .../workflows/build_firmware_and_release.yml | 30 +++++++++++++++---- src/main.cpp | 1 + 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_firmware_and_release.yml b/.github/workflows/build_firmware_and_release.yml index 9205a3b9..bfae0c23 100644 --- a/.github/workflows/build_firmware_and_release.yml +++ b/.github/workflows/build_firmware_and_release.yml @@ -120,7 +120,14 @@ jobs: exit 1 fi - - name: Create GitHub Release and Upload ZIP + - name: Prepare Release Assets + run: | + # Create a directory for individual hex files + mkdir -p release_assets + cp firmware_builds/*.hex release_assets/ + cp ${{ env.ZIP_NAME }} release_assets/ + + - name: Create GitHub Release with All Assets uses: ncipollo/release-action@v1 with: tag: "${{ env.VERSION_NUMBER }}" @@ -137,7 +144,20 @@ jobs: - teensy41beta - teensy41verifyrender - teensy41verifyhardware - - [Download the firmware here!](https://github.com/coelacant1/ProtoTracer/releases/latest/download/${{ env.ZIP_NAME }}) - artifacts: "${{ env.ZIP_NAME }}" - + + ### Downloads + - [Complete Firmware Package (ZIP)](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/${{ env.ZIP_NAME }}) + + Individual Firmware Files: + - [teensy40hub75.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy40hub75.hex) + - [teensy40ws35.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy40ws35.hex) + - [teensy40beta.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy40beta.hex) + - [teensy40verifyrender.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy40verifyrender.hex) + - [teensy40verifyhardware.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy40verifyhardware.hex) + - [teensy41hub75.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy41hub75.hex) + - [teensy41ws35.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy41ws35.hex) + - [teensy41beta.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy41beta.hex) + - [teensy41verifyrender.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy41verifyrender.hex) + - [teensy41verifyhardware.hex](https://github.com/coelacant1/ProtoTracer/releases/download/${{ env.VERSION_NUMBER }}/teensy41verifyhardware.hex) + artifacts: "release_assets/*" + artifactErrorsFailBuild: true diff --git a/src/main.cpp b/src/main.cpp index fa29995e..19a06701 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,3 +46,4 @@ void loop() { project.PrintStats(); #endif } +