Skip to content

Commit

Permalink
tried to debug #142, but to no ovail
Browse files Browse the repository at this point in the history
  • Loading branch information
Steinar Elgsæter committed Oct 31, 2024
1 parent 70607bf commit 801d694
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,15 @@ jobs:
run: nuget restore TimeSeriesAnalysis.sln
- name: Build
run: dotnet build TimeSeriesAnalysis.sln -c Release
- name: Pack
- name: dotnet pack to create *.nupkg file build artifact
run: dotnet pack TimeSeriesAnalysis.sln -c Release --include-symbols -p:SymbolPackageFormat=snupkg --include-source
- name: Nuget Set API key
- name: nuget.pkg.github.com set API key
run: nuget setapikey ${{secrets.NUGET_API_KEY}} -source https://nuget.pkg.github.com/equinor/
- name: Nuget publish
- name: nuget.pkg.github.com publish
run: nuget push bin\Release\*.nupkg -source https://nuget.pkg.github.com/equinor/ -SkipDuplicate
- name: Nuget on Github Set API key
- name: api.nuget.org set API key
run: nuget setapikey ${{secrets.NUGET_ORG_API_KEY}} -source https://api.nuget.org/v3/index.json
- name: Nuget on Github publish
- name: api.nuget.org 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/

4 changes: 4 additions & 0 deletions scripts/_CreatePackage.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd ..
dotnet build TimeSeriesAnalysis.sln -c Release -p:NuGetBuild=True -p:GenerateDocumentationFile=True -p:DebugSymbols=true -p:DebugType=portable
dotnet pack TimeSeriesAnalysis.sln -c Release --include-symbols -p:NuGetBuild=True -p:SymbolPackageFormat=snupkg --include-source
pause

0 comments on commit 801d694

Please sign in to comment.