Skip to content

Migrate to esptool.js 0.5.3 #580

Migrate to esptool.js 0.5.3

Migrate to esptool.js 0.5.3 #580

Workflow file for this run

name: Build ESPHome Web
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build Site
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run Build
run: web.esphome.io/script/build_web
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: web.esphome.io/dist
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: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/[email protected]
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]