File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ steps:
14
14
title : " Validate running on master branch"
15
15
image : codefresh/build-cli
16
16
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
22
22
23
23
main_clone :
24
24
stage : prepare
@@ -177,13 +177,13 @@ steps:
177
177
178
178
archive_win :
179
179
stage : build
180
- title : " Archiving macos distribution"
180
+ title : " Archiving win distribution"
181
181
image : codefresh/build-cli
182
182
commands :
183
183
- " rm -rf ./dist/win"
184
184
- " mkdir -p ./dist/win"
185
185
- " 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"
187
187
- " zip codefresh-v${{PACKAGE_VERSION}}-win-x64.zip README.md LICENSE -j ./dist/win/codefresh.exe "
188
188
when :
189
189
steps :
@@ -209,6 +209,7 @@ steps:
209
209
- success
210
210
211
211
create_release :
212
+ stage : github
212
213
title : " Create github release"
213
214
image : codefresh/build-cli
214
215
fail_fast : false
@@ -221,6 +222,7 @@ steps:
221
222
- success
222
223
223
224
get_release :
225
+ stage : github
224
226
title : " Get github release"
225
227
image : codefresh/build-cli
226
228
commands :
@@ -233,6 +235,7 @@ steps:
233
235
- name : create_release
234
236
on :
235
237
- success
238
+ - failure
236
239
237
240
upload_linux :
238
241
stage : github
You can’t perform that action at this time.
0 commit comments