Skip to content

Commit

Permalink
delay sign the assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
somdoron committed Jul 17, 2020
1 parent a511c4a commit e7e4698
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ jobs:
shell: bash
- run: echo ${{ steps.get_version.outputs.VERSION }}
- run: dotnet restore .
- run: dotnet pack NaCl.net -o . -c Release /p:PackageVersion=${{ steps.get_version.outputs.VERSION }} /p:Version=${{ steps.get_version.outputs.VERSION }} /p:ContinuousIntegrationBuild=true
- run: dotnet build NaCl.net -c Release /p:PackageVersion=${{ steps.get_version.outputs.VERSION }} /p:Version=${{ steps.get_version.outputs.VERSION }} /p:ContinuousIntegrationBuild=true
- run: sn -R NaCl.net/bin/Release/net45/NaCl.dll nacl.net.snk
- run: sn -R NaCl.net/bin/Release/net472/NaCl.dll nacl.net.snk
- run: sn -R NaCl.net/bin/Release/netstandard1.3/NaCl.dll nacl.net.snk
- run: sn -R NaCl.net/bin/Release/netstandard2.0/NaCl.dll nacl.net.snk
- run: sn -R NaCl.net/bin/Release/netstandard2.1/NaCl.dll nacl.net.snk
- run: dotnet pack NaCl.net --no-build -o . -c Release /p:PackageVersion=${{ steps.get_version.outputs.VERSION }} /p:Version=${{ steps.get_version.outputs.VERSION }} /p:ContinuousIntegrationBuild=true
- run: dotnet nuget push *.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
env:
NUGET_API_KEY: ${{ secrets.NuGetAPIKey }}
Expand Down
9 changes: 8 additions & 1 deletion NaCl.net/NaCl.net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Port of Curve25519, XSalsa20 and Poly1305 from NaCl project</Description>
<PackageProjectUrl>https://github.com/somdoron/nacl.net</PackageProjectUrl>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\nacl.net.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\publicKey.snk</AssemblyOriginatorKeyFile>
<PublicSign>false</PublicSign>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/somdoron/NaCl.net.git</RepositoryUrl>
Expand All @@ -24,6 +24,7 @@
<Title>C# port of NaCl crypto library</Title>
<RepositoryType>git</RepositoryType>
<PackageTags>NaCl libsodium sodium curve25519 xsalsa poly1305</PackageTags>
<DelaySign>true</DelaySign>
</PropertyGroup>

<ItemGroup>
Expand All @@ -50,5 +51,11 @@
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Memory" Version="4.5.3" />
</ItemGroup>

<ItemGroup>
<None Include="..\publicKey.snk">
<Link>publicKey.snk</Link>
</None>
</ItemGroup>

</Project>
Binary file added publicKey.snk
Binary file not shown.

0 comments on commit e7e4698

Please sign in to comment.