Skip to content

Updates

Updates #194

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
push:
branches:
- master
- dev
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Package NuGet
run: dotnet pack Template.csproj
- name: Post NuGet Artifacts
uses: actions/upload-artifact@v2
with:
name: nuget-artifacts
path: '**/*.nupkg'
- name: Publish NuGets
if: ${{ github.ref == 'refs/heads/master' }}
run: dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate