Skip to content

Commit

Permalink
Merge pull request #720 from nokia/moosq-patch-11
Browse files Browse the repository at this point in the history
fixing msi upload
  • Loading branch information
moosq committed Oct 24, 2023
2 parents 8cd905b + fe5bd6f commit b4ffadf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ jobs:
go-msi make --msi "$PWD/ntt.msi" --out "$PWD/build" --version "${GITHUB_REF#refs/tags/}"
printf "::set-output name=msi::%s\n" *.msi
- name: Upload MSI
shell: bash
run: hub release edit "${GITHUB_REF#refs/tags/}" -m "" --draft=true -a "${{ steps.buildmsi.outputs.msi }}"
run: |
$env:PATH += ";C:\hub\bin"
$pattern = "refs/tags/(.+)"
if($env:GITHUB_REF -match $pattern) {
Write-Host "try to upload msi file for version ntt $($matches[1])"
hub.exe release edit $($matches[1]) -m "" --draft=true -a "${{ steps.buildmsi.outputs.msi }}"
} else {
Write-Error "error: provided reference does not contain a tag: $env:GITHUB_REF"
}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit b4ffadf

Please sign in to comment.