Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tarontop committed Aug 30, 2024
1 parent e1b4785 commit 22d6dc3
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 132 deletions.
48 changes: 0 additions & 48 deletions .github/actions/build/action.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/build.yml

This file was deleted.

62 changes: 29 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,37 @@ on:
pull_request:

jobs:
build:
name: Building ${{ matrix.device }}
ci:
name: Building ${{ matrix.file }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
device:
- rgb-light
- rgbww-light
- rgbct-light
- rgbw-light
- garage-door
# - ws2812b
- mini-switch
- relay-board-x1
- relay-board-x2
- relay-board-x4
- relay-board-x8
- smart-plug
- smart-plug-v2
- wall-outlet
- sw01
- sw01-v2
- sw02
- sw02-v2
- sw03
- sw04
- cb02
# - ls-4p-3wire
# - ls-4p-4wire
- presence-sensor
file:
- athom-cb02.yaml
- athom-garage-door.yaml
- athom-mini-switch.yaml
- athom-presence-sensor.yaml
- athom-relay-board-x1.yaml
- athom-relay-board-x2.yaml
- athom-relay-board-x4.yaml
- athom-relay-board-x8.yaml
- athom-rgb-light.yaml
- athom-rgbct-light.yaml
- athom-rgbw-light.yaml
- athom-rgbww-light.yaml
- athom-smart-plug-v2.yaml
- athom-smart-plug.yaml
- athom-sw01-v2.yaml
- athom-sw01.yaml
- athom-sw02-v2.yaml
- athom-sw02.yaml
- athom-sw03.yaml
- athom-sw04.yaml
- athom-wall-outlet.yaml
steps:
- name: Checkout source
uses: actions/checkout@v3.2.0
- uses: esphome/[email protected]
id: esphome-build
- name: Checkout source code
uses: actions/checkout@v4.1.7
- name: Build ESPHome firmware to verify configuration
uses: esphome/build[email protected]
with:
yaml_file: athom-${{ matrix.device }}.yaml
yaml-file: ${{ matrix.file }}
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Publish ESPHome firmware and website

on:
push:
branches:
- main

jobs:
build:
uses: esphome/workflows/.github/workflows/publish.yml@main
with:
# CHANGEME: Set the filenames of your config files here:
files:
athom-cb02.yaml,
athom-garage-door.yaml,
athom-mini-switch.yaml,
athom-presence-sensor.yaml,
athom-relay-board-x1.yaml,
athom-relay-board-x2.yaml,
athom-relay-board-x4.yaml,
athom-relay-board-x8.yaml,
athom-rgb-light.yaml,
athom-rgbct-light.yaml,
athom-rgbw-light.yaml,
athom-rgbww-light.yaml,
athom-smart-plug-v2.yaml,
athom-smart-plug.yaml,
athom-sw01-v2.yaml,
athom-sw01.yaml,
athom-sw02-v2.yaml,
athom-sw02.yaml,
athom-sw03.yaml,
athom-sw04.yaml,
athom-wall-outlet.yaml
# CHANGEME: Set the name of your project here:
name: Athom ESP8285 Device

0 comments on commit 22d6dc3

Please sign in to comment.