Skip to content

Commit

Permalink
Update workflow to use split jobs (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed Aug 4, 2024
1 parent 9633e07 commit e6f743b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@ jobs:
with:
files: |
voice-kit.yaml
name: voice-kit
esphome-version: 2024.7.3
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }}
release-url: ${{ github.event_name == 'release' && github.event.release.html_url || '' }}
upload: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev') }}
release-version: ${{ github.event_name == 'release' && github.event.release.tag_name || '' }}

upload:
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
with:
name: voice-kit
version: ${{ needs.build-firmware.outputs.version }}
secrets: inherit

0 comments on commit e6f743b

Please sign in to comment.