Skip to content

Commit

Permalink
Update build.sh and release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ju4n97 committed Apr 28, 2022
1 parent fec0842 commit 7b15102
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/create-assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Zip assets
run: |
zip ./bin/ec-windows-amd64.zip ./bin/ec-windows-amd64.exe
zip ./bin/ec-windows-386.zip ./bin/ec-windows-386.exe
zip ./bin/kibot-windows-amd64.zip ./bin/kibot-windows-amd64.exe
zip ./bin/kibot-windows-386.zip ./bin/kibot-windows-386.exe
- name: Upload windows-amd64 binary
id: upload-win-64
Expand All @@ -28,8 +28,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/ec-windows-amd64.zip
asset_name: ec-windows-amd64.zip
asset_path: ./bin/kibot-windows-amd64.zip
asset_name: kibot-windows-amd64.zip
asset_content_type: application/zip

- name: Upload windows-386 binary
Expand All @@ -39,6 +39,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/ec-windows-386.zip
asset_name: ec-windows-386.zip
asset_path: ./bin/kibot-windows-386.zip
asset_name: kibot-windows-386.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for platform in "${platforms[@]}"; do
platform_split=(${platform//\// })
GOOS=${platform_split[0]}
GOARCH=${platform_split[1]}
output_name=ec'-'$GOOS'-'$GOARCH
output_name=kibot'-'$GOOS'-'$GOARCH
if [ $GOOS = "windows" ]; then
output_name+='.exe'
fi
Expand Down

0 comments on commit 7b15102

Please sign in to comment.