Skip to content

Commit 1a519c3

Browse files
Merge pull request #415 from julio-matarranz/fix/prerelease-with-bootapp
fix: add bootapp to prerelease
2 parents 3a50f87 + c20b002 commit 1a519c3

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/main.yml

+17-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ jobs:
2626
run: pip install --upgrade platformio
2727
- name: Build PlatformIO Project
2828
run: pio run
29-
- name: Archive artifacts
29+
- name: Archive built binaries
3030
uses: actions/upload-artifact@v4
3131
with:
32-
name: builded-binaries-${{ github.sha }}
32+
name: built-binaries-${{ github.sha }}
3333
path: .pio/build/*/*.bin
3434
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
3541
- name: Get version
3642
id: version_step
3743
run: echo "version=`cat src/version.h | grep CURRENT_VERSION | awk -F\\" '{print $2}'`" >> $GITHUB_OUTPUT
@@ -41,13 +47,18 @@ jobs:
4147
runs-on: ubuntu-latest
4248
if: github.ref == 'refs/heads/dev'
4349
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
4556
uses: actions/download-artifact@v4
4657
with:
4758
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)"' {} \;
5162
- name: Pre-release
5263
uses: softprops/action-gh-release@v2
5364
with:

0 commit comments

Comments
 (0)