Skip to content

Commit

Permalink
upload with proper naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoliveira committed Mar 31, 2024
1 parent b0a8d92 commit e797fd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -52,4 +52,4 @@ Write-Output $pathNow

New-ItemProperty -Path "HKCU:\Environment" -Name "Path" -Value "$pathNow" -PropertyType String -Force

setx ERGO_PATH "$installDir"
setx ERGO_PATH "$installDir"

0 comments on commit e797fd8

Please sign in to comment.