Skip to content

adjust workflow

adjust workflow #3

Workflow file for this run

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