forked from altrdev/FiatUconnect
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1009 Bytes
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: .NET
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
strategy:
matrix:
include:
- arch: "armv7"
rid: "linux-musl-arm"
- arch: "amd64"
rid: "linux-musl-x64"
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: build_release
run: |
cd FCAAddon/FCAClient
dotnet publish -r ${{ matrix.rid }} --configuration Release --self-contained -o build/
- name: docker_login
uses: docker/[email protected]
with:
registry: ghcr.io
username: altrdev #${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: create_image
uses: home-assistant/builder@master
with:
args: |
--${{ matrix.arch }} \
--target FCAAddon