From 2bfd9f165cb29a9da132d9e8db287b274097539c Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Fri, 19 Apr 2024 01:02:24 +0100 Subject: [PATCH] Rename bin --- .github/workflows/pio.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pio.yml b/.github/workflows/pio.yml index 8b661cf2..fd7ddcba 100644 --- a/.github/workflows/pio.yml +++ b/.github/workflows/pio.yml @@ -45,7 +45,7 @@ jobs: path: | ~/.cache/pip ~/.platformio - key: ${{ runner.os }}-${{ matrix.environment}}-${{ hashFiles('platformio.ini') }} + key: ${{ runner.os }}-${{ matrix.environment}} - uses: actions/setup-python@v4 with: python-version: '3.9' @@ -60,11 +60,12 @@ jobs: echo "PLATFORMIO_BUILD_CACHE_DIR=$HOME/.platformio/.cache" >> $GITHUB_ENV - name: Build PlatformIO Project run: pio run -e ${{ matrix.environment }} + - name: Rename Bin + run: mv .pio/build/${{ matrix.environment }}/firmware.bin StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin - name: 'Upload Artifact' uses: actions/upload-artifact@v3 with: - name: StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin - path: .pio/build/${{ matrix.environment }}/firmware.bin + path: StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin retention-days: 30 release: