Skip to content

Commit 948b386

Browse files
Tweaks to the release workflows (#889)
* 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
1 parent 49cfab6 commit 948b386

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
uses: actions/upload-artifact@v4
9292
with:
9393
name: ${{ matrix.env }}.bin
94-
path: .pio/build/${{ matrix.env }}/firmware.bin
94+
path: .pio/build/${{ matrix.env }}/*.bin
9595

9696
release:
9797
name: Upload release assets
@@ -114,14 +114,23 @@ jobs:
114114
mv "$image" "$board"
115115
done
116116
117+
- name: Get the bootloader and partition files
118+
run: |
119+
for i in openevse_wifi_tft_v1:16mb openevse_wifi_v1:4mb; do
120+
env=$(cut -f1 -d: <<< $i)
121+
name=$(cut -f2 -d: <<< $i)
122+
mv artifacts/$env.bin/bootloader.bin bootloader_$name.bin
123+
mv artifacts/$env.bin/partitions.bin partitions_$name.bin
124+
done
125+
117126
- name: Upload assets to latest release
118127
if: github.ref_name == 'master'
119-
uses: "marvinpinto/action-automatic-releases@latest"
128+
uses: "softprops/action-gh-release@v2"
120129
with:
121-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
122-
automatic_release_tag: latest
123130
prerelease: true
124-
title: Development Build
131+
tag_name: latest
132+
name: Development Build
133+
generate_release_notes: true
125134
files: |
126135
*.bin
127136

0 commit comments

Comments
 (0)