mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-14 23:00:33 +00:00
Update goreleaser.ts
This commit is contained in:
parent
b508e2e3ef
commit
4d25ab4fd4
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue