-
-
Notifications
You must be signed in to change notification settings - Fork 74
38 lines (27 loc) · 1.03 KB
/
publish.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
name: Build, Test and Publish release
on:
push:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.x.x
7.x.x
- name: install workload ios
run: dotnet workload install ios
- name: install workload wasm
run: dotnet workload install wasm-tools
- name: Build & Test
run: dotnet test src/Avalonia.FuncUI.sln --verbosity normal
- name: Build for release
run: dotnet build src/Avalonia.FuncUI/Avalonia.FuncUI.fsproj -c Release
- name: Build for release
run: dotnet build src/Avalonia.FuncUI.Elmish/Avalonia.FuncUI.Elmish.fsproj -c Release
- name: Publish base project and Elmish NuGets (if this version was not published before)
run: dotnet nuget push src/**/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate