forked from shinyorg/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.14 KB
/
build.yml
File metadata and controls
51 lines (41 loc) · 1.14 KB
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
44
45
46
47
48
49
50
51
name: Build
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
push:
branches:
- master
- dev
- preview
- v*
paths:
- "src/**"
- ".github/workflows/**"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Add .NET 6 Workloads
run: dotnet workload install maui ios android maccatalyst
- name: Build
run: dotnet build Shiny.Framework.sln /restore -m -property:Configuration=Release -property:PublicRelease=true
- name: Post NuGet Artifacts
uses: actions/upload-artifact@v2
with:
name: nuget-artifacts
path: '**/*.nupkg'
- name: Publish NuGets
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }}
run: dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate