Skip to content

Commit a5c3335

Browse files
committed
do it case by case
1 parent e804886 commit a5c3335

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ jobs:
3535
- name: Set environment dynamically
3636
id: set-env
3737
run: |
38-
# Export the secret's value
39-
echo "EXTRA_ENV=--env ${{ fromJSON(secrets.DEPLOY_EXTRA_ENVS)[matrix.folder] }}" >> $GITHUB_ENV
38+
case ${{ matrix.folder }} in
39+
"ai_image_gen")
40+
echo "EXTRA_ENV=--env ${{ secrets.REPLCATE_API_TOKEN }}" >> $GITHUB_ENV
41+
*)
42+
echo "EXTRA_ENV=" >> $GITHUB_ENV
43+
esac
4044
- name: Deploy to ReflexCloud
4145
env:
4246
REFLEX_AUTH_TOKEN: ${{ secrets.REFLEX_AUTH_TOKEN }}

0 commit comments

Comments
 (0)