From 532a427ed9ebce913ddd5aef8d4fbd3fcb2b5a73 Mon Sep 17 00:00:00 2001 From: Guo-Rong <5484552+gkoh@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:17:29 +1030 Subject: [PATCH] Change the artifact path before upload. --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca4c3e5..7f0d8cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,9 @@ jobs: permissions: contents: write + env: + FIRMWARE_NAME: furble-${{ matrix.platform }}-${{ github.ref_name }}+${{ github.run_attempt }}.bin + steps: - uses: actions/checkout@v4 @@ -36,11 +39,14 @@ jobs: - name: Build furble (${{ matrix.platform }}) run: platformio run -e ${{ matrix.platform }} + - name: Rename binary (${{ matrix.platform}}) + run: mv .pio/build/${{ matrix.platform }}/firmware.bin $FIRMWARE_NAME + - name: Upload binary artifact (${{ matrix.platform }}) uses: actions/upload-artifact@v4 with: - name: furble-${{ matrix.platform }}-${{ github.ref_name }}+${{ github.run_attempt }}.bin - path: .pio/build/${{ matrix.platform }}/firmware.bin + name: ${{ env.FIRMWARE_NAME }} + path: ${{ env.FIRMWARE_NAME }} if-no-files-found: error release: