Skip to content

Commit

Permalink
Also upload files to the GitHub release (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Nov 23, 2024
1 parent c0451d2 commit a672c80
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,18 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "[Install here](https://esphome.github.io/home-assistant-voice-pe/?version=${{ github.event.release.tag_name }}) and test **before** approving deployment to beta or production." >> $GITHUB_STEP_SUMMARY
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
Expand All @@ -93,7 +103,7 @@ jobs:

promote-prod:
name: Promote to Production
if: github.event.release.prerelease == false
if: github.event_name == 'release' && github.event.release.prerelease == false
uses: esphome/workflows/.github/workflows/[email protected]
needs:
- upload-to-r2
Expand Down

0 comments on commit a672c80

Please sign in to comment.