Skip to content

Commit

Permalink
tweak script
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Crippa committed Apr 21, 2024
1 parent 0b2d0e3 commit a2abaf1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,19 @@ jobs:
- name: Build PlatformIO Project
run: pio run

- name: Archive Artifacts
- name: Create Artifacts Directory
run: mkdir -p artifacts

- name: Archive Firmware
run: |
declare -A current_board=$(basename $(dirname {}))
find .pio/build -name "firmware.bin" -exec sh -c 'cp "{}" "artifacts/firmware_$(basename $(dirname {})).bin"' \;
working-directory: ${{ github.workspace }}

- name: Archive Artifacts with Address
run: |
mkdir -p artifacts
# Define the mapping of board names to file prefixes
declare -A board_map=(
["esp8266"]="0x0000_firmware"
Expand Down

0 comments on commit a2abaf1

Please sign in to comment.