try to fix auto rename of output files

This commit is contained in:
Knutwurst
2020-09-04 19:19:38 +02:00
parent 39bd14f340
commit 1855bb9925

View File

@@ -1,9 +1,4 @@
#
# test-builds.yml
# Do test builds to catch compile errors
#
name: CI
name: Build All Firmware Variants
on:
#pull_request:
@@ -95,9 +90,15 @@ jobs:
- name: Run PlatformIO
run: platformio run --environment ${{ matrix.platform }}
- name: Rename Output Files
run: |
CUSTOM_BUILD_VERSION=$(egrep -o "([0-9]{1,}\.)+[0-9]{1,}" Marlin/src/inc/Version.h -m2 | tail -n1)
mv .pio/build/${{ matrix.platform }}/firmware.hex .pio/build/${{ matrix.platform }}/${{ matrix.platform }}_v$CUSTOM_BUILD_VERSION.hex
done
- name: Archive production artifacts
uses: actions/upload-artifact@master
with:
name: ${{ matrix.platform }}.hex
name: ${{ matrix.platform }}
path: |
.pio/build/${{ matrix.platform }}/firmware.hex
.pio/build/${{ matrix.platform }}/${{ matrix.platform }}_v*.hex