From d914731be0cd1e89ea38746acfd4388ba694fa45 Mon Sep 17 00:00:00 2001 From: moosq <53606936+moosq@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:59:27 +0200 Subject: [PATCH 1/2] change archive format for windows to zip --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 82385a23..0ad5f590 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -47,6 +47,9 @@ archives: {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end -}} + format_overrides: + - goos: windows + format: zip checksum: name_template: 'checksums.txt' From 19bd72b40f1716ea7213ce009b5a8f85b467de94 Mon Sep 17 00:00:00 2001 From: moosq <53606936+moosq@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:18:23 +0200 Subject: [PATCH 2/2] change windows archive name to zip --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cfbfc37..a89be19f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,11 +34,10 @@ jobs: $env:PATH += ";C:\hub\bin" - name: Download ntt.exe id: download_exe - shell: bash run: | - hub.exe release download "${GITHUB_REF#refs/tags/}" -i ntt_Windows_x86_64.tar.gz - printf "::set-output name=zip::%s\n" *.tar.gz - tar xzf ntt_Windows_x86_64.tar.gz && rm ntt_Windows_x86_64.tar.gz + $env:PATH += ";C:\hub\bin" + hub.exe release download "${GITHUB_REF#refs/tags/}" -i ntt_Windows_x86_64.zip + Expand-Archive ntt_Windows_x86_64.zip env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Install go-msi