Skip to content

Commit

Permalink
refactor artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Nov 23, 2024
1 parent 4236e22 commit 918e278
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 34 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/esphome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,23 @@ jobs:
- name: Generate md5 checksum
run: |
mkdir -p artifacts/openspool-${{ matrix.target }}
mv -f openspool-${{ matrix.target }}/* artifacts/openspool-${{ matrix.target }}/
ls -la artifacts/openspool-${{ matrix.target }}
ls -la openspool-${{ matrix.target }}
for file in artifacts/openspool-${{ matrix.target }}/*.bin; do
for file in openspool-${{ matrix.target }}/*.bin; do
md5sum "$file" | awk '{print $1}' > "${file}.md5"
md5_length=$(wc -c < "${file}.md5")
if [ "$md5_length" -ne 33 ]; then
echo "MD5 generation failed for $file (length: $md5_length)"
exit 1
fi
ls -la artifacts/openspool-${{ matrix.target }}
ls -la openspool-${{ matrix.target }}
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: openspool-${{ matrix.target }}
path: artifacts/openspool-${{ matrix.target }}
path: openspool-${{ matrix.target }}/**/*
retention-days: 5
if-no-files-found: error

Expand Down
4 changes: 0 additions & 4 deletions artifacts/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions artifacts/manifest.json

This file was deleted.

Binary file removed artifacts/openspool-esp32s2.factory.bin
Binary file not shown.
1 change: 0 additions & 1 deletion artifacts/openspool-esp32s2.factory.bin.md5

This file was deleted.

Binary file removed artifacts/openspool-esp32s2.ota.bin
Binary file not shown.
1 change: 0 additions & 1 deletion artifacts/openspool-esp32s2.ota.bin.md5

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ nav_order: 1
<div class="button-row">
<esp-web-install-button
manifest="https://openspool.io/firmware/manifest.json">
<span slot="unsupported">🛑 <b>Only <img src="https://img.shields.io/badge/Google%20Chrome-4285F4?style=for-the-badge&logo=GoogleChrome&logoColor=white" alt="Google Chrome"> / <img src="https://img.shields.io/badge/Edge-0078D7?style=for-the-badge&logo=Microsoft-edge&logoColor=white" alt="Edge"> Supported</b> 🛑</span>
<span slot="unsupported"> <b>Only <img src="https://img.shields.io/badge/Google%20Chrome-4285F4?style=for-the-badge&logo=GoogleChrome&logoColor=white" alt="Google Chrome"> / <img src="https://img.shields.io/badge/Edge-0078D7?style=for-the-badge&logo=Microsoft-edge&logoColor=white" alt="Edge"> Supported</b> </span>

<span slot="not-allowed">🔒 HTTPS Required 🔒 </span>
</esp-web-install-button>
Expand Down

0 comments on commit 918e278

Please sign in to comment.