Skip to content

Commit

Permalink
signing during the build
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Jun 14, 2024
1 parent 94ee3b0 commit 008f936
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ REM Scripts to build .net driver and deploy
SET VERSION=%1
SET API_KEY=%2

SET ROOT_DIR=%~dp0
SET ROOT_DIR=%~dp0
cd %ROOT_DIR%

dotnet build Snowflake.Data\Snowflake.Data.csproj -c Release --force -v n

REM command to sign with strong name Snowflake.Data.dll should be here
dotnet build Snowflake.Data\Snowflake.Data.csproj -c Release --force -v n /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=snKey.snk

dotnet pack Snowflake.Data\Snowflake.Data.csproj -c Release --force -v n --no-build --output %ROOT_DIR%

dotnet nuget push Snowflake.Data.%VERSION%.nupkg -k %API_KEY% -s https://api.nuget.org/v3/index.json
dotnet nuget push Snowflake.Data.%VERSION%.nupkg -k %API_KEY% -s https://api.nuget.org/v3/index.json

0 comments on commit 008f936

Please sign in to comment.