@@ -26,12 +26,18 @@ jobs:
26
26
run : pip install --upgrade platformio
27
27
- name : Build PlatformIO Project
28
28
run : pio run
29
- - name : Archive artifacts
29
+ - name : Archive built binaries
30
30
uses : actions/upload-artifact@v4
31
31
with :
32
- name : builded -binaries-${{ github.sha }}
32
+ name : built -binaries-${{ github.sha }}
33
33
path : .pio/build/*/*.bin
34
34
if-no-files-found : error
35
+ - name : Archive bootapp binary
36
+ uses : actions/upload-artifact@v4
37
+ with :
38
+ name : bootapp-binary-${{ github.sha }}
39
+ path : ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
40
+ if-no-files-found : error
35
41
- name : Get version
36
42
id : version_step
37
43
run : echo "version=`cat src/version.h | grep CURRENT_VERSION | awk -F\\" '{print $2}'`" >> $GITHUB_OUTPUT
@@ -41,13 +47,18 @@ jobs:
41
47
runs-on : ubuntu-latest
42
48
if : github.ref == 'refs/heads/dev'
43
49
steps :
44
- - name : Download binaries
50
+ - name : Download built binaries
51
+ uses : actions/download-artifact@v4
52
+ with :
53
+ path : ${{ github.workspace }}/binaries
54
+ name : built-binaries-${{ github.sha }}
55
+ - name : Download bootapp binary
45
56
uses : actions/download-artifact@v4
46
57
with :
47
58
path : ${{ github.workspace }}/binaries
48
- name : builded-binaries -${{ github.sha }}
49
- - name : Rename binaries
50
- run : find ${{ github.workspace }}/binaries -maxdepth 3 -type f -name "*.bin" -exec sh -c 'cp "$0" "${{ github.workspace }}/binaries/$(basename $(dirname "$0"))_$(basename $0)"' {} \;
59
+ name : bootapp-binary -${{ github.sha }}
60
+ - name : Rename built binaries
61
+ run : find ${{ github.workspace }}/binaries -mindepth 2 - maxdepth 3 -type f -name "*.bin" -exec sh -c 'cp "$0" "${{ github.workspace }}/binaries/$(basename $(dirname "$0"))_$(basename $0)"' {} \;
51
62
- name : Pre-release
52
63
uses : softprops/action-gh-release@v2
53
64
with :
0 commit comments