Fix release updater #18
This file contains hidden or 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
| name: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - "v*.*.*" | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| # required in case of tags to update releases | |
| contents: write | |
| jobs: | |
| # see https://github.com/esphome/esphome-project-template/tree/main/.github/workflows | |
| build: | |
| name: Build ESPHome project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v5 | |
| - name: ESPHome | |
| uses: esphome/build-action@v7 | |
| with: | |
| yaml-file: example-instance.yaml | |
| version: stable | |
| - name: Upload files to release | |
| uses: softprops/[email protected] | |
| if: github.ref_type == 'tag' | |
| with: | |
| files: | | |
| */*.ota.bin | |
| */*.factory.bin |