Skip to content

Commit 78069d2

Browse files
committed
github: consolidate firmware uploads
The uploads-artifacts action allows multiple paths in a single command so we can consolidate multiple commands into one.
1 parent 8b28499 commit 78069d2

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -221,25 +221,17 @@ jobs:
221221
uses: actions/upload-artifact@v2
222222
with:
223223
name: ${{ matrix.hub }}-firmware
224-
path: bricks/${{ matrix.hub }}/build/firmware-base.bin
225-
- name: Upload firmware metadata
226-
if: ${{ success() && matrix.hub != 'nxt }}
227-
uses: actions/upload-artifact@v2
228-
with:
229-
name: ${{ matrix.hub }}-firmware
230-
path: bricks/${{ matrix.hub }}/build/firmware.metadata.json
231-
- name: Upload main.py
232-
if: ${{ success() && matrix.hub != 'nxt }}
233-
uses: actions/upload-artifact@v2
234-
with:
235-
name: ${{ matrix.hub }}-firmware
236-
path: bricks/${{ matrix.hub }}/main.py
237-
- name: Upload ReadMe_OSS.txt
238-
if: ${{ success( && matrix.hub != 'nxt }}
224+
path: |
225+
bricks/${{ matrix.hub }}/build/firmware-base.bin
226+
bricks/${{ matrix.hub }}/build/firmware.metadata.json
227+
- name: Upload firmware extra
228+
if: ${{ success() && matrix.hub != 'nxt' }}
239229
uses: actions/upload-artifact@v2
240230
with:
241231
name: ${{ matrix.hub }}-firmware
242-
path: bricks/${{ matrix.hub }}/ReadMe_OSS.txt
232+
path: |
233+
bricks/${{ matrix.hub }}/main.py
234+
bricks/${{ matrix.hub }}/ReadMe_OSS.txt
243235
- name: Upload install_pybricks.*
244236
if: ${{ success() && matrix.hub == 'primehub' }}
245237
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)