-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ApolloAutomation/dev
Update Build And Flashing Page
- Loading branch information
Showing
5 changed files
with
118 additions
and
148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'The version of the firmware to build' | ||
required: true | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-firmware: | ||
name: Build And Release | ||
uses: esphome/workflows/.github/workflows/build.yml@main | ||
with: | ||
files: | | ||
Integrations/ESPHome/H-1.yaml | ||
esphome-version: stable | ||
combined-name: firmware | ||
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }} | ||
release-url: ${{ github.event_name == 'release' && github.event.release.html_url || '' }} | ||
release-version: ${{ (github.event_name == 'release' && github.event.release.tag_name) || (github.event_name == 'workflow_dispatch' && inputs.version) || '' }} | ||
|
||
build-firmware-d: | ||
name: Build And Release | ||
uses: esphome/workflows/.github/workflows/build.yml@main | ||
with: | ||
files: | | ||
Integrations/ESPHome/H-1D.yaml | ||
esphome-version: stable | ||
combined-name: firmware-d | ||
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }} | ||
release-url: ${{ github.event_name == 'release' && github.event.release.html_url || '' }} | ||
release-version: ${{ (github.event_name == 'release' && github.event.release.tag_name) || (github.event_name == 'workflow_dispatch' && inputs.version) || '' }} | ||
|
||
build-site: | ||
name: Build Site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/[email protected] | ||
- name: Build | ||
uses: actions/[email protected] | ||
with: | ||
source: ./static | ||
destination: ./output | ||
- name: Upload | ||
uses: actions/[email protected] | ||
with: | ||
name: site | ||
path: output | ||
|
||
publish: | ||
name: Publish to GitHub Pages | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-firmware | ||
- build-firmware-d | ||
- build-site | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
name: firmware | ||
path: firmware | ||
- uses: actions/[email protected] | ||
with: | ||
name: firmware-d | ||
path: firmware-d | ||
|
||
- name: Copy firmware and manifest | ||
run: |- | ||
mkdir -p output/firmware | ||
cp -r firmware/${{ needs.build-firmware.outputs.version }}/* output/firmware/ | ||
- name: Copy firmware and manifest | ||
run: |- | ||
mkdir -p output/firmware-d | ||
cp -r firmware-d/${{ needs.build-firmware.outputs.version }}/* output/firmware-d/ | ||
- uses: actions/[email protected] | ||
with: | ||
name: site | ||
path: output | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
path: output | ||
retention-days: 1 | ||
|
||
- name: Setup Pages | ||
uses: actions/[email protected] | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/[email protected] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# CHANGEME: Set these variable to your liking | ||
title: Apollo H-1 Installer | ||
description: Powered by ESPHome and ESP Web Tools | ||
theme: jekyll-theme-slate |
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