Skip to content

Commit

Permalink
Change the artifact path before upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoh committed Feb 27, 2024
1 parent da2051e commit 532a427
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 532a427

Please sign in to comment.