Skip to content

Commit a49cbb5

Browse files
committed
ci: fix gh asset name
1 parent d66bc31 commit a49cbb5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/release-risc-v-imc.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
description: 'Prefix for binary name'
1616
required: true
1717
default: 'esp32-conways-game-of-life'
18-
target:
18+
board:
1919
description: 'Target directory for the ESP32-C3 project (e.g. esp32-c3-lcdkit)'
2020
required: true
2121
default: 'esp32-c3-lcdkit'
@@ -40,18 +40,12 @@ jobs:
4040

4141
- name: Build ESP32-C3 Project and Collect Assets
4242
run: |
43-
cd "${{ github.event.inputs.target }}"
43+
cd "${{ github.event.inputs.board }}"
4444
cargo build --release
4545
cd ..
4646
mkdir -p release_riscv_imc
4747
# Adjust the binary name/path as needed.
48-
cp "${{ github.event.inputs.target }}/target/riscv32imc-unknown-none-elf/release/esp32-conways-game-of-life-rs" release_riscv_imc/
49-
50-
# - name: Install GitHub CLI
51-
# run: sudo apt-get install gh
52-
53-
# - name: Authenticate GitHub CLI
54-
# run: gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"
48+
cp "${{ github.event.inputs.board }}/target/riscv32imc-unknown-none-elf/release/esp32-conways-game-of-life-rs" release_riscv_imc/
5549
5650
- name: Check if Release Exists
5751
id: check_release
@@ -80,7 +74,7 @@ jobs:
8074
run: |
8175
for file in $(find release_riscv_imc -type f); do
8276
base=$(basename "$file")
83-
asset_name="${{ github.event.inputs.prefix }}-${{ github.event.inputs.release_tag }}-${base}"
77+
asset_name="${{ github.event.inputs.prefix }}-${{ github.event.inputs.release_tag }}-${{ github.event.inputs.board }}.bin"
8478
echo "Uploading $file as $asset_name"
8579
gh release upload "${{ github.event.inputs.release_tag }}" "$file#${asset_name}" --clobber
8680
done

0 commit comments

Comments
 (0)