Skip to content

Commit

Permalink
Merge pull request #80 from ricaun-io/develop
Browse files Browse the repository at this point in the history
Version 1.9.1
  • Loading branch information
ricaun authored Jan 3, 2025
2 parents b38e828 + 6f54b94 commit c2a217f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ jobs:
NugetApiUrl: ${{ secrets.NUGET_API_URL }}
NugetApiKey: ${{ secrets.NUGET_API_KEY }}

# SignFile: ${{ secrets.SIGN_FILE }}
# SignPassword: ${{ secrets.SIGN_PASSWORD }}
SignFile: ${{ secrets.SIGN_FILE_AZURE }}
SignPassword: ${{ secrets.SIGN_PASSWORD_AZURE }}
SignFile: ${{ secrets.SIGN_FILE }}
SignPassword: ${{ secrets.SIGN_PASSWORD }}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.9.1] / 2025-01-03
### Updated
- Force to uninstall local `Tools` to remove cache when `.exe` is not found. (Fix: #79)

## [1.9.0] / 2024-12-06 - 2024-12-19
### Features
- Enable sign files using `Azure Key Vault`.
Expand Down Expand Up @@ -389,6 +393,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- First Release

[vNext]: ../../compare/1.0.0...HEAD
[1.9.1]: ../../compare/1.9.0...1.9.1
[1.9.0]: ../../compare/1.8.2...1.9.0
[1.8.2]: ../../compare/1.8.1...1.8.2
[1.8.1]: ../../compare/1.8.0...1.8.1
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.9.0</Version>
<Version>1.9.1</Version>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions ricaun.Nuke/Extensions/NuGetExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public static bool NugetSign(string packageFileName, string certPath, string cer
{
try
{
Serilog.Log.Information($"NuGet sign: {packageFileName}");
NuGetTasks.NuGet(
$"sign \"{packageFileName}\"" +
$" -CertificatePath {certPath}" +
Expand Down
12 changes: 12 additions & 0 deletions ricaun.Nuke/Tools/AzureSignToolUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ private static string PackageDownload(string packageId)
return packageToolExeExists;
}

try
{
// Force to uninstall to remove cache files if exists.
DotNetTasks.DotNetToolUninstall(x => x
.SetPackageName(packageId)
.SetToolInstallationPath(toolFolder)
.DisableProcessLogInvocation()
.DisableProcessLogOutput()
);
}
catch { }

DotNetTasks.DotNetToolInstall(x => x
.SetPackageName(packageId)
.SetToolInstallationPath(toolFolder)
Expand Down

0 comments on commit c2a217f

Please sign in to comment.