Build & Publish Release #11
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 & 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 |