Skip to content

Commit 3abd031

Browse files
authored
Use reusable workflow (#22)
1 parent d26dec0 commit 3abd031

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

.github/workflows/publish-firmware.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,8 @@ jobs:
2121

2222
upload-to-release:
2323
name: Upload to Release
24+
uses: esphome/workflows/.github/workflows/upload-to-gh-release.yml@main
2425
needs:
2526
- build-firmware
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Download Artifact
29-
uses: actions/[email protected]
30-
with:
31-
path: files
32-
- name: Copy files to output
33-
run: |-
34-
mkdir output
35-
version="${{ needs.build-firmware.outputs.version }}"
36-
pushd files
37-
for device in *; do
38-
pushd $device
39-
pushd $version
40-
cp manifest.json ../../../output/$device.manifest.json
41-
for bin in *.bin; do
42-
md5sum $bin | head -c 32 > ../../../output/$bin.md5
43-
cp $bin ../../../output/
44-
done
45-
popd
46-
popd
47-
done
48-
popd
49-
- name: Upload files to release
50-
uses: softprops/[email protected]
51-
with:
52-
files: output/*
27+
with:
28+
version: ${{ github.event.release.tag_name }}"

0 commit comments

Comments
 (0)