Update goreleaser.ts
This commit is contained in:
parent
b508e2e3ef
commit
4d25ab4fd4
|
@ -28,6 +28,11 @@ export async function install(distribution: string, version: string): Promise<st
|
||||||
core.info('Extracting GoReleaser');
|
core.info('Extracting GoReleaser');
|
||||||
let extPath: string;
|
let extPath: string;
|
||||||
if (context.osPlat == 'win32') {
|
if (context.osPlat == 'win32') {
|
||||||
|
if(!downloadPath.endsWith('.zip')) {
|
||||||
|
let newPath = downloadPath + '.zip'
|
||||||
|
fs.renameSync(downloadPath, newPath)
|
||||||
|
downloadPath = newPath
|
||||||
|
}
|
||||||
extPath = await tc.extractZip(downloadPath);
|
extPath = await tc.extractZip(downloadPath);
|
||||||
} else {
|
} else {
|
||||||
extPath = await tc.extractTar(downloadPath);
|
extPath = await tc.extractTar(downloadPath);
|
||||||
|
|
Loading…
Reference in New Issue