-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.91 KB
/
build.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
name: Build
on: [push]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
- name: Setup MSBuild Path
uses: microsoft/Setup-MSBuild@v1.0.3
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Query nuget folders(figure out where nunit.consolerunner is stored)
run: nuget locals global-packages -list
- name: Restore NuGet Packages
run: nuget restore TimeSeriesAnalysis.sln
- name: Build
run: dotnet build TimeSeriesAnalysis.sln -c Release
- name: Pack
run: dotnet pack TimeSeriesAnalysis.sln -c Release --include-symbols -p:SymbolPackageFormat=snupkg --include-source
- name: Nuget Set API key
run: nuget setapikey ${{secrets.NUGET_API_KEY}} -source https://nuget.pkg.github.com/equinor/
- name: Nuget publish
run: nuget push bin\Release\*.nupkg -source https://nuget.pkg.github.com/equinor/ -SkipDuplicate
- name: Nuget on Github Set API key
run: nuget setapikey ${{secrets.NUGET_ORG_API_KEY}} -source https://api.nuget.org/v3/index.json
- name: Nuget on Github publish
run: nuget push bin\Release\*.nupkg -source https://api.nuget.org/v3/index.json -SkipDuplicate
#- name: Publish
# uses: rohith/publish-nuget@v2
# with:
# PROJECT_FILE_PATH: TimeSeriesAnalysis.csproj
# TAG_COMMIT: true
# TAG_FORMAT: v*
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}
# NUGET_SOURCE: https://nuget.pkg.github.com/equinor/