Skip to content

Commit

Permalink
SNOW-685438: Sign Nuget artifacts before release (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-anavalos authored Aug 8, 2024
1 parent 18f495a commit 3707fa0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ dotnet build Snowflake.Data\Snowflake.Data.csproj -c Release --force -v n /p:Sig

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

aws s3 cp s3://sfc-eng-jenkins/repository/net/sign-artifact.exe .
@For /F Delims^= %%G In ('""certutil.exe" -HashFile "sign-artifact.exe" SHA512|"find.exe" /V ":""')Do @Set "SHA=%%G"
if not %SHA%==94f0b4a78979ded42f7f8c8ce2534691f9f874888bcf7963876f5be881cf6d0ce00e6f8d3e656492249fcfcb890ad656745f2cf68f98e828eb02ded6189a87d4 (
echo "Failed to verify the sha for the signing script"
exit 1
)
sign-artifact.exe sign-artifact -o snowflakedb -r snowflake-connector-net -t v%VERSION% -l 20 -v -u -f Snowflake.Data.%VERSION%.nupkg

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

0 comments on commit 3707fa0

Please sign in to comment.