Skip to content

Commit b8191e1

Browse files
Release (#737)
fix release pipeline
1 parent 1fdfb1d commit b8191e1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

codefresh-release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ steps:
1414
title: "Validate running on master branch"
1515
image: codefresh/build-cli
1616
commands:
17-
- 'echo This pipeline should be run only on master'
18-
- 'exit 1'
19-
when:
20-
branch:
21-
ignore: [ master ]
17+
- >-
18+
if [ "${{CF_BRANCH}}" != "master" ]; then
19+
echo This pipeline should be run only on master
20+
exit 1
21+
fi
2222
2323
main_clone:
2424
stage: prepare
@@ -177,13 +177,13 @@ steps:
177177

178178
archive_win:
179179
stage: build
180-
title: "Archiving macos distribution"
180+
title: "Archiving win distribution"
181181
image: codefresh/build-cli
182182
commands:
183183
- "rm -rf ./dist/win"
184184
- "mkdir -p ./dist/win"
185185
- "cp --force README.md LICENSE ./dist/win"
186-
- "cp --force ./dist/codefresh-win ./dist/win/codefresh.exe"
186+
- "cp --force ./dist/codefresh-win.exe ./dist/win/codefresh.exe"
187187
- "zip codefresh-v${{PACKAGE_VERSION}}-win-x64.zip README.md LICENSE -j ./dist/win/codefresh.exe "
188188
when:
189189
steps:
@@ -209,6 +209,7 @@ steps:
209209
- success
210210

211211
create_release:
212+
stage: github
212213
title: "Create github release"
213214
image: codefresh/build-cli
214215
fail_fast: false
@@ -221,6 +222,7 @@ steps:
221222
- success
222223

223224
get_release:
225+
stage: github
224226
title: "Get github release"
225227
image: codefresh/build-cli
226228
commands:
@@ -233,6 +235,7 @@ steps:
233235
- name: create_release
234236
on:
235237
- success
238+
- failure
236239

237240
upload_linux:
238241
stage: github

0 commit comments

Comments
 (0)