Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed May 30, 2024
1 parent 205f64e commit e724ef9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ jobs:
run: cp conf/secrets.hpp.example conf/secrets.hpp
- name: Build PlatformIO Project ${{ matrix.variant }}
run: pio run --environment ${{ matrix.variant }}
- name: Set sha_short variable
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Upload firmware image for ${{ matrix.variant }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.variant }} - ${{ github.ref_name }}
name: FW-${{ matrix.variant }}-${{ steps.vars.outputs.sha_short }}
path: |
.pio/build/${{ matrix.variant }}/firmware.bin
.pio/build/${{ matrix.variant }}/firmware_metrics.txt
Expand Down

0 comments on commit e724ef9

Please sign in to comment.