Skip to content

Commit

Permalink
Tweaks to the release workflows (#889)
Browse files Browse the repository at this point in the history
* Tweaks to the release workflows

Grab the bootloader and partition files for 4MB and 16MB builds

`marvinpinto/action-automatic-releases` no longer looks to be maintained and for some reason we are using a different actions for the latest and proper release, so used `softprops/action-gh-release` for both cases.

* error fix

* Tweaked settings to better match the release process
  • Loading branch information
jeremypoulter committed Aug 8, 2024
1 parent 49cfab6 commit 948b386
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.env }}.bin
path: .pio/build/${{ matrix.env }}/firmware.bin
path: .pio/build/${{ matrix.env }}/*.bin

release:
name: Upload release assets
Expand All @@ -114,14 +114,23 @@ jobs:
mv "$image" "$board"
done
- name: Get the bootloader and partition files
run: |
for i in openevse_wifi_tft_v1:16mb openevse_wifi_v1:4mb; do
env=$(cut -f1 -d: <<< $i)
name=$(cut -f2 -d: <<< $i)
mv artifacts/$env.bin/bootloader.bin bootloader_$name.bin
mv artifacts/$env.bin/partitions.bin partitions_$name.bin
done
- name: Upload assets to latest release
if: github.ref_name == 'master'
uses: "marvinpinto/action-automatic-releases@latest"
uses: "softprops/action-gh-release@v2"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: latest
prerelease: true
title: Development Build
tag_name: latest
name: Development Build
generate_release_notes: true
files: |
*.bin
Expand Down

0 comments on commit 948b386

Please sign in to comment.