-
-
Notifications
You must be signed in to change notification settings - Fork 170
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 #547 from klaasnicolaas/release/v4.1.1
Release v4.1.1
- Loading branch information
Showing
12 changed files
with
361 additions
and
414 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -100,7 +100,7 @@ jobs: | |
- name: 🧪 Display changed YAML file | ||
run: cat ${{ matrix.firmware }}/${{ matrix.device }}.yaml | ||
- name: 🔨 Build firmware | ||
uses: esphome/build-action@v3.1.0 | ||
uses: esphome/build-action@v3.2.0 | ||
id: esphome-build | ||
with: | ||
yaml_file: ${{ matrix.firmware }}/${{ matrix.device }}.yaml | ||
|
@@ -112,11 +112,12 @@ jobs: | |
mkdir -p output/${{ matrix.device }} | ||
mv ${{ steps.esphome-build.outputs.name }}/* output/${{ matrix.device }}/ | ||
echo ${{ steps.esphome-build.outputs.version }} > output/${{ matrix.device }}/version | ||
echo ${{ steps.esphome-build.outputs.project-version }} > output/${{ matrix.device }}/project_version | ||
- name: 🔨 Alter path in manifest.json | ||
run: | | ||
sed -i 's/${{ steps.esphome-build.outputs.name }}\//\/${{ matrix.firmware }}\/${{ matrix.device }}\//g' output/${{ matrix.device }}/manifest.json | ||
- name: ⬆️ Upload firmware / device artifact | ||
uses: actions/[email protected].3 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: build-${{ matrix.firmware}}-${{ matrix.device }} | ||
path: output | ||
|
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 |
---|---|---|
|
@@ -8,11 +8,6 @@ on: | |
- published | ||
workflow_dispatch: | ||
inputs: | ||
release-tag: | ||
description: "Release tag" | ||
default: "x.x.x" | ||
required: true | ||
type: string | ||
release-url: | ||
description: "Release URL" | ||
default: "https://github.com" | ||
|
@@ -21,7 +16,6 @@ on: | |
|
||
jobs: | ||
build-firmware: | ||
if: ${{ github.event.ref == 'refs/heads/main' }} | ||
uses: klaasnicolaas/home-assistant-glow/.github/workflows/build-firmware.yaml@main | ||
name: Firmware | ||
with: | ||
|
@@ -39,34 +33,34 @@ jobs: | |
name: Home Assistant Glow | ||
steps: | ||
- name: ⤵️ Download specific artifacts | ||
uses: actions/[email protected].7 | ||
uses: actions/[email protected].8 | ||
with: | ||
pattern: build-${{ matrix.project }}-* | ||
merge-multiple: true | ||
path: files | ||
- name: 🔨 Generate device manifest.json | ||
run: | | ||
version=${{ github.event.release.tag_name || inputs.release-tag }} | ||
version=cat(project_version) | ||
jq -s --arg version "$version" '{"name": "${{ matrix.name }}", "version": $version, "home_assistant_domain": "esphome", "builds":.}' files/*/manifest.json > files/manifest.json | ||
- name: 🧪 Display structure of job | ||
run: ls -R | ||
- name: ⬆️ Upload project artifact | ||
uses: actions/[email protected].3 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: ${{ matrix.project }} | ||
path: files | ||
retention-days: 1 | ||
|
||
build-docs: | ||
name: Build documentation | ||
if: contains(fromJSON('["workflow_dispatch", "release"]'), github.event_name) && github.ref == 'refs/heads/main' | ||
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | ||
runs-on: ubuntu-latest | ||
needs: combined-manifests | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: ⬇️ Download all artifacts | ||
uses: actions/[email protected].7 | ||
uses: actions/[email protected].8 | ||
with: | ||
pattern: "!build-*" | ||
path: output | ||
|
@@ -76,7 +70,7 @@ jobs: | |
run: ls -R | ||
|
||
- name: 🏗️ Set up Node.js | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].3 | ||
with: | ||
node-version: 20.x | ||
- name: 🏗️ Install Docusaurus dependencies | ||
|
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
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
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
Oops, something went wrong.