10000 Restored firmware upload in platformio-build · ravngr/github-workflows@cfc011f · GitHub
[go: up one dir, main page]

Skip to content

Commit cfc011f

Browse files
committed
Restored firmware upload in platformio-build
1 parent 8ec2bd6 commit cfc011f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/platformio-build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
required: true
1818
type: string
1919

20+
upload-firmware:
21+
description: 'If true firmware artefacts will be uploaded on completion'
22+
required: false
23+
default: false
24+
2025

2126
jobs:
2227
pio-build:
@@ -39,3 +44,13 @@ jobs:
3944
- name: "Run build"
4045
run: |
4146
pio run -e "${{ inputs.pio-environment }}"
47+
48+
- name: "Upload firmware"
49+
if: ${{ inputs.upload-firmware == 'true' }}
50+
uses: actions/upload-artifact@v3
51+
with:
52+
name: firmware
53+
path: |
54+
"./.pio/build/${{ inputs.pio-environment }}/bootloader.*"
55+
"./.pio/build/${{ inputs.pio-environment }}/firmware.*"
56+
"./.pio/build/${{ inputs.pio-environment }}/project.checksum"

0 commit comments

Comments
 (0)
0