Skip to content

Commit 0a2030e

Browse files
committed
#RI-6349 - Fix mas build
1 parent 11726f5 commit 0a2030e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/pipeline-build-macos.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
mv release/mas-universal/Redis-Insight-mac-universal-mas.pkg release/Redis-Insight-mac-universal-mas.pkg
6565
6666
- name: Build macos dmg (staging)
67-
# if: (vars.ENV == 'staging' || vars.ENV == 'development') && inputs.target == vars.ALL
67+
if: (vars.ENV == 'staging' || vars.ENV == 'development') && inputs.target == vars.ALL
6868
run: |
6969
unset CSC_LINK
7070
@@ -77,22 +77,22 @@ jobs:
7777
mv release/mas-universal/Redis-Insight-mac-universal-mas.pkg release/Redis-Insight-mac-universal-mas.pkg
7878
7979
# handle manual builds
80-
# - name: Build macos dmg (custom)
81-
# if: inputs.target != vars.ALL
82-
# run: |
83-
# unset CSC_LINK
84-
# target=$(echo "${{inputs.target}}" | grep -oE 'build_macos_[^ ]+' | sed 's/build_macos_/dmg:/' | paste -sd ' ' -)
80+
- name: Build macos dmg (custom)
81+
if: inputs.target != vars.ALL
82+
run: |
83+
unset CSC_LINK
84+
target=$(echo "${{inputs.target}}" | grep -oE 'build_macos_[^ ]+' | sed 's/build_macos_/dmg:/' | paste -sd ' ' -)
8585
86-
# if [ "${{ vars.ENV == 'production' }}" == "true" ]; then
87-
# yarn package:prod --mac $target
88-
# else
89-
# yarn package:stage --mac $target
90-
# fi
86+
if [ "${{ vars.ENV == 'production' }}" == "true" ]; then
87+
yarn package:prod --mac $target
88+
else
89+
yarn package:stage --mac $target
90+
fi
9191
92-
# rm -rf release/mac
92+
rm -rf release/mac
9393
9494
- name: Repack dmg to tar
95-
# if: vars.ENV == 'production' && inputs.target == vars.ALL
95+
if: vars.ENV == 'production' && inputs.target == vars.ALL
9696
run: |
9797
ARCH=x64 ./.github/redisstack/dmg.repack.sh
9898
ARCH=arm64 ./.github/redisstack/dmg.repack.sh

0 commit comments

Comments
 (0)