-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8eb0a7
commit dbdb99d
Showing
1 changed file
with
39 additions
and
8 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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
|
@@ -16,25 +13,59 @@ concurrency: | |
jobs: | ||
build-firmware: | ||
name: Build Firmware | ||
uses: esphome/workflows/.github/workflows/build.yml@main | ||
uses: esphome/workflows/.github/workflows/build.yml@2024.11.1 | ||
with: | ||
files: | | ||
esp32-s3-box/esp32-s3-box.factory.yaml | ||
esp32-s3-box-lite/esp32-s3-box-lite.factory.yaml | ||
esp32-s3-box-3/esp32-s3-box-3.factory.yaml | ||
m5stack-atom-echo/m5stack-atom-echo.factory.yaml | ||
esphome-version: 2024.9.0 | ||
esphome-version: 2024.11.1 | ||
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 || '' }} | ||
|
||
upload: | ||
upload-to-r2: | ||
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | ||
name: Upload to R2 | ||
needs: | ||
- build-firmware | ||
uses: esphome/workflows/.github/workflows/upload.yml@main | ||
uses: esphome/workflows/.github/workflows/upload-to-r2.yml@2024.11.1 | ||
with: | ||
directory: wake-word-voice-assistant | ||
version: ${{ needs.build-firmware.outputs.version }} | ||
secrets: inherit | ||
|
||
upload-to-release: | ||
name: Upload to Release | ||
if: github.event_name == 'release' | ||
uses: esphome/workflows/.github/workflows/[email protected] | ||
needs: | ||
- build-firmware | ||
with: | ||
version: ${{ github.event.release.tag_name }} | ||
|
||
promote-beta: | ||
name: Promote to Beta | ||
if: github.event_name == 'release' | ||
uses: esphome/workflows/.github/workflows/[email protected] | ||
needs: | ||
- upload-to-r2 | ||
with: | ||
version: ${{ github.event.release.tag_name }} | ||
directory: wake-word-voice-assistant | ||
channel: beta | ||
manifest-filename: manifest-beta.json | ||
secrets: inherit | ||
|
||
promote-prod: | ||
name: Promote to Production | ||
if: github.event_name == 'release' && github.event.release.prerelease == false | ||
uses: esphome/workflows/.github/workflows/[email protected] | ||
needs: | ||
- upload-to-r2 | ||
with: | ||
version: ${{ github.event.release.tag_name }} | ||
directory: wake-word-voice-assistant | ||
channel: production | ||
manifest-filename: manifest.json | ||
secrets: inherit |