- update the Clone() of PidModel and Unitmodel to actually create cop… #769
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 | |
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/ | |