Skip to content

Commit bcce1db

Browse files
committed
test deploy@v0 for templates
1 parent 5f171e4 commit bcce1db

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: deploy
22

33
# only redeploy when we push a new release.
4+
# on:
5+
# release:
6+
# types: [published]
47
on:
5-
release:
6-
types: [published]
7-
8+
push:
9+
branches:
10+
- lendemor/deploy_pipeline
811

912
jobs:
1013
setup-matrix:
@@ -46,15 +49,16 @@ jobs:
4649
echo "EXTRA_ARGS=--env OPEN_AI_KEY=${{ secrets.OPEN_AI_KEY }}" >> $GITHUB_ENV
4750
;;
4851
nba)
49-
echo "EXTRA_ARGS=--vmtype c1m1" >> $GITHUB_ENV
52+
echo "EXTRA_ARGS=--vmtype ${{ vars.NBA_VM_TYPE }}" >> $GITHUB_ENV
5053
;;
5154
*)
5255
echo "EXTRA_ARGS=" >> $GITHUB_ENV
5356
;;
5457
esac
5558
- name: Deploy to ReflexCloud
56-
env:
57-
REFLEX_AUTH_TOKEN: ${{ secrets.REFLEX_AUTH_TOKEN }}
58-
run: |
59-
chmod +x deploy.sh
60-
./deploy.sh ${{ matrix.folder }} "$EXTRA_ARGS"
59+
uses: reflex-dev/reflex-deploy-action@v0
60+
with:
61+
auth_token: ${{ secrets.REFLEX_AUTH_TOKEN }}
62+
project_id: ${{ secrets.REFLEX_PROJECT_ID }}
63+
app_directory: ${{ matrix.folder }}
64+
extra_args: ${{ env.EXTRA_ARGS }}

0 commit comments

Comments
 (0)