Skip to content

Commit

Permalink
testing without Condition="Exists('$(KeyFilePath)')" (#18)
Browse files Browse the repository at this point in the history
* testing without Condition="Exists('$(KeyFilePath)')"

* fix for snk file

* Fix
  • Loading branch information
dmitry-brazhenko committed Aug 2, 2023
1 parent 0f66c77 commit f32da3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Write SNK file
shell: pwsh
run: |
$env:SNK_BASE64 -split ' ' -join "`n" | Out-File -Encoding utf8 keypair.snk.base64.txt
certutil -decode keypair.snk.base64.txt keypair.snk
$env:SNK_BASE64 -split ' ' -join "`n" | Out-File -Encoding utf8 ./SharpToken/keypair.snk.base64.txt
certutil -decode ./SharpToken/keypair.snk.base64.txt ./SharpToken/keypair.snk
env:
SNK_BASE64: ${{ secrets.SNK_BASE64 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Write SNK file
shell: pwsh
run: |
$env:SNK_BASE64 -split ' ' -join "`n" | Out-File -Encoding utf8 keypair.snk.base64.txt
certutil -decode keypair.snk.base64.txt keypair.snk
$env:SNK_BASE64 -split ' ' -join "`n" | Out-File -Encoding utf8 ./SharpToken/keypair.snk.base64.txt
certutil -decode ./SharpToken/keypair.snk.base64.txt ./SharpToken/keypair.snk
env:
SNK_BASE64: ${{ secrets.SNK_BASE64 }}

Expand Down
2 changes: 1 addition & 1 deletion SharpToken/SharpToken.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<KeyFilePath>keypair.snk</KeyFilePath>
</PropertyGroup>

<PropertyGroup Condition="Exists('$(KeyFilePath)')">
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(KeyFilePath)</AssemblyOriginatorKeyFile>
</PropertyGroup>
Expand Down

0 comments on commit f32da3a

Please sign in to comment.