Skip to content

Remove D# pin numbering, fix pin number mapping #6

Remove D# pin numbering, fix pin number mapping

Remove D# pin numbering, fix pin number mapping #6

Workflow file for this run

name: Build ESPHome
on:
workflow_dispatch:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
name: Build ESPHome
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout ESPHome fork
uses: actions/checkout@v3
with:
repository: kuba2k2/libretiny-esphome
path: esphome
ref: platform/libretuya
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install PlatformIO Core
run: |
pip install --upgrade platformio
- name: Install ESPHome
run: |
cd esphome/
pip install .
- name: Get current date
id: date
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "datever=$(date +'%y.%m.%d')" >> $GITHUB_OUTPUT
- name: Build firmware binaries
run: |
bash build.sh ${{ steps.date.outputs.date }}
- name: Add GitHub release assets
uses: softprops/action-gh-release@v1
with:
files: |
build/*.*
tag_name: v${{ steps.date.outputs.datever }}
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}