Skip to content

Commit

Permalink
Merge pull request #715 from nokia/moosq-patch-6
Browse files Browse the repository at this point in the history
fix download of zip archive
  • Loading branch information
moosq authored Oct 23, 2023
2 parents 4284966 + 45adbad commit 7a7dd19
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ jobs:
id: download_exe
run: |
$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
$pattern = ".+refs/tags/(.+)"
if($env:GITHUB_REF -match $pattern) {
Write-Host "try to download zip archive for version ntt $($matches[1])"
hub.exe release download $($matches[1]) -i ntt_Windows_x86_64.zip
Expand-Archive ntt_Windows_x86_64.zip
} else {
Write-Error "error: provided reference does not contain a tag: $env:GITHUB_REF"
}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install go-msi
Expand Down

0 comments on commit 7a7dd19

Please sign in to comment.