diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 9bdc1ed..d325a7d 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -46,14 +46,12 @@ jobs: - name: Create artifacts for linux run: | go build -ldflags "-w -s -X main.VERSION=$RELEASE_TAG" -o bin/ergo.exe - choco install 7zip - 7z a -tzip bin/ergo-$RELEASE_TAG-win.zip bin/ergo.exe - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ergo-${{ env.RELEASE_TAG }}-${{ env.TARGET }}.tar.gz - asset_name: ergo-${{ env.RELEASE_TAG }}-${{ env.TARGET }}.tar.gz - tag: ${{ github.ref }} + file: bin/ergo.exe + asset_name: ergo-${{ env.TARGET }}.exe + tag: ${{ env.RELEASE_TAG }} overwrite: true diff --git a/install.ps1 b/install.ps1 index c066327..2d95e1c 100644 --- a/install.ps1 +++ b/install.ps1 @@ -25,8 +25,8 @@ $v = Get-Content .version | Out-String $v = $v.Trim() Write-Host "Ergo $v will be installed to: $installDir" -Invoke-WebRequest -Uri "https://github.com/cristianoliveira/ergo/releases/download/$v/ergo.exe" -OutFile $downloadTo - +# TODO adds an argument to choose the target +Invoke-WebRequest -Uri "https://github.com/cristianoliveira/ergo/releases/download/$v/ergo-windows-amd64.exe" -OutFile $downloadTo If(!(Test-Path $installDir)) { @@ -52,4 +52,4 @@ Write-Output $pathNow New-ItemProperty -Path "HKCU:\Environment" -Name "Path" -Value "$pathNow" -PropertyType String -Force -setx ERGO_PATH "$installDir" \ No newline at end of file +setx ERGO_PATH "$installDir"