Skip to content

Commit 1026ed9

Browse files
committed
Add Link to YAML Files
1 parent 4b34526 commit 1026ed9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/do_publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
run: |
7171
ls output| while read line; do
7272
newline=$(echo $line|rev|cut -d- -f2- |tr '-' " "|rev)
73-
echo "<tr><td style='text-align:center'> $newline </td><td style='text-align:center'> <esp-web-install-button manifest='./$line/manifest.json'><button slot='activate'>Install via Web</button></esp-web-install-button> </td><td style='text-align:center'> <a href='$line/$line.bin'><button>Download Firmware</button></a> </td></tr>" >> static/index.md
73+
cleanline=$(echo $line|rev|cut -d- -f2- |rev)
74+
echo "<tr><td style='text-align:center'> $newline </td><td style='text-align:center'> <esp-web-install-button manifest='./$line/manifest.json'><button slot='activate'>Install via Web</button></esp-web-install-button> </td><td style='text-align:center'> <a href='$line/$line.bin'><button>Download Firmware</button></a> </td><tdstyle='text-align:center'><a href='https://github.com/cpyarger/esphome-templates/blob/main/$cleanline.yaml'>YAML<a></td></tr>" >> static/index.md
7475
oldfile=$(cat output/$line/manifest.json)
7576
echo $(jq -nrc --arg name "$line" --arg version "${{ needs.build.outputs.esphome-version }}" --arg oldf "$oldfile" '{"name": $name, "version": $version, "home_assistant_domain": "esphome", "new_install_skip_erase": false, "builds": $oldf}') > output/$line/manifest.json
7677
done

static/index.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616
}
1717
</style>
1818
Just a series of templates for devices I own, or based on templates that people have offered.
19-
[View the yaml files here!](https://github.com/cpyarger/esphome-templates)
2019

2120
# Installation
2221

23-
You can use one of the buttons below to install the pre-built firmware directly to your device via USB from the browser.
22+
You can use one of the buttons below to install the pre-built firmware directly to your device via USB from the browser.<br>
23+
2424
<table>
2525
<thead>
2626
<tr>
27-
<th>Name</th><th>Install</th><th>Download</th>
27+
<th style='text-align:center'>Name</th>
28+
<th style='text-align:center'>Install</th>
29+
<th style='text-align:center'>Download</th>
30+
<th style='text-align:center'>YAML</th>
2831
</tr>
2932
</thead>
3033
<tbody>

0 commit comments

Comments
 (0)