Skip to content

Commit dd71041

Browse files
Itai GendlerItai Gendler
Itai Gendler
authored and
Itai Gendler
committed
Yet another fix related to binaries creation
1 parent d609eec commit dd71041

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

codefresh-release.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,20 @@ steps:
7272
title: "Upload executables to github release"
7373
image: codefresh/cli-build
7474
commands:
75+
# delete all previous .zip/.gz created files
76+
- "rm -rf *.gz"
77+
- "rm -rf *.zip"
7578
# upload linux-x64 asset
76-
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-linux.tar.gz"
77-
- "rm -rf ./dist/codefresh"
7879
- "mv ./dist/codefresh-linux ./dist/codefresh"
7980
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar README.md LICENSE -C ./dist ./codefresh "
8081
- "gzip codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar"
8182
- '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'
8283
# upload macos-x64 asset
83-
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-macos.tar.gz"
84-
- "rm -rf ./dist/codefresh"
8584
- "mv ./dist/codefresh-macos ./dist/codefresh"
8685
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar README.md LICENSE -C ./dist ./codefresh "
8786
- "gzip codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar"
8887
- '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'
8988
# upload win-x64 asset
90-
- "rm -rf codefresh-v${{PACKAGE_VERSION}}-win.zip"
91-
- "rm -rf ./dist/codefresh.exe"
9289
- "mv ./dist/codefresh-win.exe ./dist/codefresh.exe"
9390
- "zip codefresh-v${{PACKAGE_VERSION}}-win-x64.zip README.md LICENSE -j ./dist/codefresh.exe "
9491
- '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'

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.5.7",
3+
"version": "0.5.8",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)