Skip to content

Commit

Permalink
chg
Browse files Browse the repository at this point in the history
  • Loading branch information
gcormier committed Dec 21, 2023
1 parent 9e59218 commit 292548b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
# Build job
build:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -37,14 +37,38 @@ jobs:
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

build-firmware:
name: Build firmware
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/[email protected]
- name: Build firmware
uses: esphome/[email protected]
id: esphome-build
with:
yaml_file: humitemp.yaml
version: latest
- name: Copy firmware and manifest
run: |
mkdir output
mv ${{ steps.esphome-build.outputs.name }} output/
jq -s '{"name": "esphome-humitemp v2", "new_install_improv_wait_time": 15, "new_install_prompt_erase": true, "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/manifest.json
- name: Upload artifact
uses: actions/[email protected]
with:
name: manifest.json
path: output
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
needs: [build-docs, build-firmware]
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
title: Home
---
<esp-web-install-button
manifest="https://firmware.esphome.io/esphome-web/manifest.json"
></esp-web-install-button>
manifest="firmware_esphome/manifest.json">
</esp-web-install-button>
<h1>{{ "Hello World!" | downcase }}</h1>

0 comments on commit 292548b

Please sign in to comment.