Skip to content

Commit 3f211b1

Browse files
committed
update workflow
1 parent 1ddc8df commit 3f211b1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ jobs:
4040
4141
- name: Compile sketch for Arduino Mega 2560
4242
run: |
43+
mkdir -p build-out
4344
arduino-cli compile \
4445
--fqbn arduino:avr:mega \
4546
--libraries custom-libraries \
47+
--output-dir build-out \
4648
Source/HamMessenger
4749
4850
- name: List everything in build output
@@ -53,11 +55,16 @@ jobs:
5355
run: |
5456
find . -name "*.hex"
5557
58+
- name: Rename firmware file for release
59+
run: |
60+
mkdir -p output
61+
cp build-out/HamMessenger.ino.hex output/HamMessenger-mega2560.hex
62+
5663
- name: Upload nightly firmware to release
5764
uses: ncipollo/release-action@v1
5865
with:
5966
tag: nightly
6067
name: Nightly Build
6168
prerelease: true
6269
allowUpdates: true
63-
artifacts: Source/HamMessenger/build/**/HamMessenger.ino.hex
70+
artifacts: output/HamMessenger-mega2560.hex

0 commit comments

Comments
 (0)