Bump actions/setup-node from 4.0.2 to 4.1.0 (#665) #491
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
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] |