Skip to content

Commit 9d06e0a

Browse files
committed
#RIVS-262 - [Regression] Stage build from CI not connected to amplitude account
1 parent 0bcfd4d commit 9d06e0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,20 @@ jobs:
231231
- run:
232232
name: Build .vsix package
233233
command: |
234+
envFile=".env"
234235
packagePath=./release/redis-for-vscode-extension-mac
235236
236237
if [ << parameters.target >> ]; then
237238
yarn download:backend << parameters.target >>
238239
240+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
241+
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
239242
yarn package:stage --target darwin-<< parameters.target >> --out ${packagePath}-<< parameters.target >>.vsix
240243
exit 0;
241244
fi
242245
243246
if [ << parameters.env >> == 'prod' ]; then
247+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
244248
yarn download:backend arm64
245249
yarn package:prod --target darwin-arm64 --out ${packagePath}-arm64.vsix
246250
@@ -249,6 +253,8 @@ jobs:
249253
exit 0;
250254
fi
251255
256+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
257+
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
252258
yarn download:backend arm64
253259
yarn package:stage --target darwin-arm64 --out ${packagePath}-arm64.vsix
254260
@@ -289,14 +295,17 @@ jobs:
289295
- run:
290296
name: Build .vsix package
291297
command: |
298+
envFile=".env"
292299
packagePath=./release/redis-for-vscode-extension-win-x64.vsix
293300
yarn download:backend
294301
295302
if [ << parameters.env >> == 'prod' ]; then
303+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
296304
yarn package:prod --out ${packagePath}
297305
exit 0;
298306
fi
299307
308+
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
300309
yarn package:stage --out ${packagePath}
301310
shell: bash.exe
302311
no_output_timeout: 20m

0 commit comments

Comments
 (0)