Update goreleaser.ts

This commit is contained in:
Fritz Larco
2022-11-12 14:52:30 -05:00
committed by GitHub
parent b508e2e3ef
commit 4d25ab4fd4
+5
View File
@@ -28,6 +28,11 @@ export async function install(distribution: string, version: string): Promise<st
core.info('Extracting GoReleaser');
let extPath: string;
if (context.osPlat == 'win32') {
if(!downloadPath.endsWith('.zip')) {
let newPath = downloadPath + '.zip'
fs.renameSync(downloadPath, newPath)
downloadPath = newPath
}
extPath = await tc.extractZip(downloadPath);
} else {
extPath = await tc.extractTar(downloadPath);