Skip to content

Commit

Permalink
Rename bin
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Apr 19, 2024
1 parent 36a87bf commit 2bfd9f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down

0 comments on commit 2bfd9f1

Please sign in to comment.