Skip to content

Commit

Permalink
Keep bins in own folder
Browse files Browse the repository at this point in the history
md5 check
  • Loading branch information
spuder committed Nov 4, 2024
1 parent 62b88c0 commit e1d934e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ jobs:
- name: Copy manifest to firmware folder
run: |
cp openspool-esp32s2/manifest.json firmware/manifest.json
cp openspool-esp32s2/*.bin firmware/
for file in openspool-esp32s2/*.bin; do
md5 -q "$file" > "${file}.md5"
filelength=$(wc -c <"$file")
if [ "$filelength" -ne 3 ]; then
if [ "$filelength" -ne 33 ]; then
echo "md5 failed for $file"
exit 1
fi
Expand All @@ -57,7 +55,7 @@ jobs:
committer_name: GitHub Actions
committer_email: [email protected]
message: Update manifest.json
add: "firmware/manifest.json firmware/*.bin firmware/*.md5"
add: "openspool-esp32s2/*"
push: true

- name: Upload Artifacts
Expand Down

0 comments on commit e1d934e

Please sign in to comment.