-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.17 KB
/
nuget-cd-latest.yml
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
name: Publish package
# This workflow is triggered on pushes to the repository.
on:
push:
tags:
- 3.[0-9]+.[0-9]+
jobs:
build:
name: Deploy NuGet package
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Setup NuGet
uses: NuGet/setup-nuget@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
- name: Restore NuGet Packages
run: nuget restore Flagship.sln
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build dll
run: MSBuild Flagship.Tests/Flagship.Tests.csproj -property:Configuration=Debug
- name: Run tests
shell: pwsh
run: ./coverage-ci.bat
- name: Build nuget
run: MSBuild.exe -t:pack -property:Configuration=Release
working-directory: Flagship
- name: set Nuget api key
run: nuget setApiKey ${{ secrets.NUGET_APIKEY }}
- name: Push Nuget Packages
run: nuget push Flagship.SDK.*.nupkg -Source https://api.nuget.org/v3/index.json
working-directory: Flagship/NugetPackageRelease