Update __main__.py #13
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
name: Build and Test Add-on | |
on: | |
push: | |
branches: | |
- '**' | |
- '!main' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
addon: ["custom_whisper"] | |
arch: ["aarch64", "amd64"] | |
steps: | |
- name: ⤵️ Check out code from GitHub | |
uses: actions/[email protected] | |
- name: Get information | |
id: info | |
uses: home-assistant/actions/helpers/info@master | |
with: | |
path: ./${{ matrix.addon }} | |
- name: Build ${{ matrix.arch }} add-on | |
# if: github.event_name == 'push' && contains(github.ref, '/tags/v') | |
uses: home-assistant/[email protected] | |
with: | |
args: | | |
--${{ matrix.arch }} \ | |
--target ${{matrix.addon}} \ | |
--image "${{ matrix.arch }}-addon-whisper" \ | |
--docker-hub "ghcr.io/${{ github.repository_owner }}" \ | |
--test | |