generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
631a6ae
commit 2b519e7
Showing
19 changed files
with
774 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,41 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Build ${{ matrix.firmware.name }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
firmware: | ||
- file: m5stack-atom-echo.yaml | ||
name: M5 Stack Atom Echo | ||
manifest_filename: m5stack-atom-echo-manifest.json | ||
- file: m5stack-atom-speaker-kit.yaml | ||
name: M5 Stack Atom Speaker Kit | ||
manifest_filename: m5stack-atom-speaker-kit-manifest.json | ||
- file: raspiaudio-muse-proto.yaml | ||
name: Raspiaudio Muse Proto | ||
manifest_filename: raspiaudio-muse-proto-manifest.json | ||
- file: raspiaudio-muse-luxe.yaml | ||
name: Raspiaudio Muse Luxe | ||
manifest_filename: raspiaudio-muse-luxe-manifest.json | ||
fail-fast: false | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/[email protected] | ||
- name: Build firmware | ||
uses: esphome/[email protected] | ||
id: esphome-build | ||
with: | ||
yaml_file: ${{ matrix.firmware.file }} | ||
version: latest | ||
- name: Copy firmware and manifest | ||
run: | | ||
mkdir output | ||
mv ${{ steps.esphome-build.outputs.name }} output/ | ||
jq -s '{"name": "${{ matrix.firmware.name }}", "version": "${{ steps.esphome-build.outputs.esphome-version }}", "home_assistant_domain": "esphome", "new_install_skip_erase": false, "builds":.}' output/${{ steps.esphome-build.outputs.name }}/manifest.json > output/${{ matrix.firmware.manifest_filename }} | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.firmware.name }} | ||
path: output | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-firmware: | ||
name: Build Firmware | ||
uses: esphome/workflows/.github/workflows/build.yml@main | ||
with: | ||
files: | | ||
m5stack/m5stack-atom-echo.factory.yaml | ||
m5stack/m5stack-atom-speaker-kit.factory.yaml | ||
onju-voice/onju-voice.factory.yaml | ||
raspiaudio/raspiaudio-muse-luxe.factory.yaml | ||
raspiaudio/raspiaudio-muse-proto.factory.yaml | ||
esphome-version: 2024.7.3 | ||
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }} | ||
release-url: ${{ github.event_name == 'release' && github.event.release.html_url || '' }} | ||
release-version: ${{ github.event_name == 'release' && github.event.release.tag_name || '' }} | ||
|
||
consolidate: | ||
if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.ref == 'refs/heads/main' | ||
name: Consolidate firmwares | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Download built firmwares | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: firmwares | ||
- name: Copy files | ||
run: |- | ||
mkdir output | ||
cp -R static/* output/ | ||
cp -R firmwares/*/* output/ | ||
- name: Upload GitHub Pages artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: output | ||
|
||
deploy: | ||
if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.ref == 'refs/heads/main' | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
needs: consolidate | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/[email protected] | ||
upload: | ||
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | ||
name: Upload to R2 | ||
needs: | ||
- build-firmware | ||
uses: esphome/workflows/.github/workflows/upload.yml@main | ||
with: | ||
name: wake-word-voice-assistant | ||
version: ${{ needs.build-firmware.outputs.version }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: YAML lint | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "**.yaml" | ||
- "**.yml" | ||
pull_request: | ||
paths: | ||
- "**.yaml" | ||
- "**.yml" | ||
|
||
jobs: | ||
yamllint: | ||
name: 🧹 yamllint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out configuration from GitHub | ||
uses: actions/[email protected] | ||
- name: 🚀 Run yamllint | ||
run: yamllint --strict . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
extends: default | ||
|
||
ignore-from-file: .gitignore | ||
|
||
rules: | ||
document-start: disable | ||
empty-lines: | ||
level: error | ||
max: 1 | ||
max-start: 0 | ||
max-end: 1 | ||
indentation: | ||
level: error | ||
spaces: 2 | ||
indent-sequences: true | ||
check-multi-line-strings: false | ||
line-length: disable | ||
truthy: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# This repository is deprecated | ||
|
||
We have copied the source files to https://github.com/esphome/firmware/tree/main/media-player and the firmware is generated there. | ||
|
||
# ESPHome Media Players | ||
|
||
This repo hosts known, tested devices that can server as media players to Home Assistant. | ||
This repo hosts known, tested devices that can serve as media players to Home Assistant. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
packages: | ||
m5stack-atom-echo: !include m5stack-atom-echo.yaml | ||
|
||
esphome: | ||
project: | ||
name: m5stack.atom-echo | ||
version: dev | ||
|
||
ota: | ||
- platform: http_request | ||
id: ota_http_request | ||
|
||
update: | ||
- platform: http_request | ||
id: update_http_request | ||
name: Firmware | ||
source: https://firmware.esphome.io/media-player/m5stack-atom-echo/manifest.json | ||
|
||
http_request: | ||
verify_ssl: false | ||
|
||
dashboard_import: | ||
package_import_url: github://esphome/media-players/m5stack/m5stack-atom-echo.yaml@main | ||
|
||
improv_serial: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
packages: | ||
m5stack-atom-speaker-kit: !include m5stack-atom-speaker-kit.yaml | ||
|
||
esphome: | ||
project: | ||
name: m5stack.atom-speaker-kit | ||
version: dev | ||
|
||
ota: | ||
- platform: http_request | ||
id: ota_http_request | ||
|
||
update: | ||
- platform: http_request | ||
id: update_http_request | ||
name: Firmware | ||
source: https://firmware.esphome.io/media-player/m5stack-atom-speaker-kit/manifest.json | ||
|
||
http_request: | ||
verify_ssl: false | ||
|
||
dashboard_import: | ||
package_import_url: github://esphome/media-players/m5stack/m5stack-atom-speaker-kit.yaml@main | ||
|
||
improv_serial: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
packages: | ||
onju-voice: !include onju-voice.yaml | ||
|
||
esphome: | ||
project: | ||
name: onju.voice-assistant | ||
version: dev | ||
|
||
ota: | ||
- platform: http_request | ||
id: ota_http_request | ||
|
||
update: | ||
- platform: http_request | ||
id: update_http_request | ||
name: Firmware | ||
source: https://firmware.esphome.io/media-player/onju-voice/manifest.json | ||
|
||
http_request: | ||
verify_ssl: false | ||
|
||
dashboard_import: | ||
package_import_url: github://esphome/media-players/onju-voice/onju-voice.yaml@main | ||
|
||
improv_serial: |
Oops, something went wrong.