Merge pull request #415 from julio-matarranz/fix/prerelease-with-bootapp

fix: add bootapp to prerelease
This commit is contained in:
Julio MATARRANZ 2024-05-28 09:50:50 +02:00 committed by GitHub
commit 1a519c3531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,12 +26,18 @@ jobs:
run: pip install --upgrade platformio run: pip install --upgrade platformio
- name: Build PlatformIO Project - name: Build PlatformIO Project
run: pio run run: pio run
- name: Archive artifacts - name: Archive built binaries
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: builded-binaries-${{ github.sha }} name: built-binaries-${{ github.sha }}
path: .pio/build/*/*.bin path: .pio/build/*/*.bin
if-no-files-found: error if-no-files-found: error
- name: Archive bootapp binary
uses: actions/upload-artifact@v4
with:
name: bootapp-binary-${{ github.sha }}
path: ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
if-no-files-found: error
- name: Get version - name: Get version
id: version_step id: version_step
run: echo "version=`cat src/version.h | grep CURRENT_VERSION | awk -F\\" '{print $2}'`" >> $GITHUB_OUTPUT run: echo "version=`cat src/version.h | grep CURRENT_VERSION | awk -F\\" '{print $2}'`" >> $GITHUB_OUTPUT
@ -41,13 +47,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' if: github.ref == 'refs/heads/dev'
steps: steps:
- name: Download binaries - name: Download built binaries
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
path: ${{ github.workspace }}/binaries path: ${{ github.workspace }}/binaries
name: builded-binaries-${{ github.sha }} name: built-binaries-${{ github.sha }}
- name: Rename binaries - name: Download bootapp binary
run: find ${{ github.workspace }}/binaries -maxdepth 3 -type f -name "*.bin" -exec sh -c 'cp "$0" "${{ github.workspace }}/binaries/$(basename $(dirname "$0"))_$(basename $0)"' {} \; uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/binaries
name: bootapp-binary-${{ github.sha }}
- name: Rename built binaries
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)"' {} \;
- name: Pre-release - name: Pre-release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with: