Minor #61
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 | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
push: | |
branches: | |
- master | |
- dev | |
- preview | |
- v* | |
paths: | |
- "src/**" | |
- ".github/workflows/**" | |
env: | |
NugetApiKey: ${{secrets.NUGETAPIKEY}} | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.201' | |
- name: Add .NET Workloads | |
run: dotnet workload install maui macos | |
- name: Build | |
run: dotnet build Build.slnf /restore -m -property:Configuration=Release -property:PublicRelease=true | |
- name: Publish to Nuget | |
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 ${{ env.NugetApiKey }} |