Skip to content

Build & Publish Release #11

Build & Publish Release

Build & Publish Release #11

name: Build & Publish Release
on:
workflow_dispatch:
jobs:
BuildAndPublish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Build
run: dotnet build AssetManagementBase.sln --configuration Release
- name: Test
run: dotnet test AssetManagementBase.sln
- name: Install NuGet
uses: NuGet/setup-nuget@v1
- name: Publish AssetManagementBase to NuGet
run: nuget.exe push src\bin\Release\AssetManagementBase.*.nupkg ${{secrets.NUGET_APIKEY}} -Source https://api.nuget.org/v3/index.json