File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 49
49
environment :
50
50
description : Environment to run build
51
51
type : environment
52
- default : ' staging '
52
+ default : ' development '
53
53
required : false
54
54
55
55
debug :
Original file line number Diff line number Diff line change 69
69
- name : Build linux packages (custom)
70
70
if : inputs.target != vars.ALL
71
71
run : |
72
- target=""
73
- if [ ${{ startsWith(inputs.target, 'linux:') }} == 'true' ]; then
74
- inputsTarget=${{inputs.target}}
75
- target=${inputsTarget#linux:}
76
- fi
72
+ target=$(echo "${{inputs.target}}" | grep -oE 'build_linux_[^_ ]+' | sed 's/build_linux_//' | sort -u | paste -sd ' ' -)
77
73
78
- if [ ${{ contains( vars.ENV, 'production') }} ]; then
74
+ if [ " ${{ vars.ENV == 'production' }}" == "true" ]; then
79
75
yarn package:prod --linux $target
80
76
else
81
77
yarn package:stage --linux $target
Original file line number Diff line number Diff line change 80
80
if : inputs.target != vars.ALL
81
81
run : |
82
82
unset CSC_LINK
83
- target=""
83
+ target=$(echo "${{inputs.target}}" | grep -oE 'build_macos_[^ ]+' | sed 's/build_macos_/dmg:/' | paste -sd ' ' -)
84
84
85
- if [ ${{ startsWith(inputs.target, 'macos:') }} == 'true' ]; then
86
- inputsTarget=${{inputs.target}}
87
- target=--${inputsTarget#macos:}
88
- fi
89
-
90
- if [ ${{ contains(vars.ENV, 'production') }} ]; then
85
+ if [ "${{ vars.ENV == 'production' }}" == "true" ]; then
91
86
yarn package:prod --mac $target
92
87
else
93
88
yarn package:stage --mac $target
You can’t perform that action at this time.
0 commit comments