Skip to content

Commit

Permalink
Yet another fix related to binaries creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Itai Gendler authored and Itai Gendler committed Jan 7, 2018
1 parent d609eec commit dd71041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions codefresh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,20 @@ steps:
title: "Upload executables to github release"
image: codefresh/cli-build
commands:
# delete all previous .zip/.gz created files
- "rm -rf *.gz"
- "rm -rf *.zip"
# upload linux-x64 asset
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-linux.tar.gz"
- "rm -rf ./dist/codefresh"
- "mv ./dist/codefresh-linux ./dist/codefresh"
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar README.md LICENSE -C ./dist ./codefresh "
- "gzip codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar"
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar.gz https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar.gz'
# upload macos-x64 asset
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-macos.tar.gz"
- "rm -rf ./dist/codefresh"
- "mv ./dist/codefresh-macos ./dist/codefresh"
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar README.md LICENSE -C ./dist ./codefresh "
- "gzip codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar"
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar.gz https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar.gz'
# upload win-x64 asset
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-win.zip"
- "rm -rf ./dist/codefresh.exe"
- "mv ./dist/codefresh-win.exe ./dist/codefresh.exe"
- "zip codefresh-v${{PACKAGE_VERSION}}-win-x64.zip README.md LICENSE -j ./dist/codefresh.exe "
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-win-x64.zip https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-win-x64.zip'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.5.7",
"version": "0.5.8",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit dd71041

Please sign in to comment.