diff --git a/src/hugo.ts b/src/hugo.ts index 3a8281c..1d384db 100644 --- a/src/hugo.ts +++ b/src/hugo.ts @@ -41,12 +41,16 @@ export class HugoInstaller { const hugoBinName = this.platform.binaryName(Hugo.CmdName) const tmpDir = os.tmpdir() + let versionSpec = release.tag_name + if (cmd.extended) { + versionSpec += '+extended' + } + if (cmd.withDeploy) { + versionSpec += '+withdeploy' + } + try { - const cachedTool = tc.find( - Hugo.Name, - release.tag_name, - this.platform.arch - ) + const cachedTool = tc.find(Hugo.Name, versionSpec, this.platform.arch) if (cachedTool) { core.addPath(cachedTool) return @@ -81,7 +85,7 @@ export class HugoInstaller { path.join(tmpDir, hugoBinName), hugoBinName, Hugo.Name, - release.tag_name, + versionSpec, this.platform.arch )