File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 11name : deploy
22
33# only redeploy when we push a new release.
4+ # on:
5+ # release:
6+ # types: [published]
47on :
5- release :
6- types : [published]
7-
8+ push :
9+ branches :
10+ - lendemor/deploy_pipeline
811
912jobs :
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 }}
You can’t perform that action at this time.
0 commit comments