Initial commit #5
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 Add-on | |
on: | |
push: | |
branches: | |
- main | |
tags: [ 'v*.*.*' ] | |
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: Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.ACTION_TOKEN }} | |
- 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 }}" | |