Skip to content

Commit

Permalink
chore: add BASE_PATH configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz committed Dec 12, 2023
1 parent b7a5442 commit 1833c0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-react-sample-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
project-id: prj_4TTdjeVHEDhWWiFRfjIr1QFb5ell
- name: react-dogfood - https://getstream.io/video/demos
project-id: prj_tTLn3XMVal4D1Nnel9nPJ0hoI9wA
base-path: /video/demos

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
Expand Down Expand Up @@ -86,6 +87,8 @@ jobs:
### Vercel deployment (Preview) ###
- name: Vercel Pull/Build/Deploy (Preview)
if: ${{ github.ref_name != 'main' }}
env:
BASE_PATH: ${{ matrix.application.base-path || '' }}
run: >
yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} &&
yarn vercel build --token=${{ secrets.VERCEL_TOKEN }} &&
Expand All @@ -94,6 +97,8 @@ jobs:
### Vercel deployment (Production) ###
- name: Vercel Pull/Build/Deploy (Production)
if: ${{ github.ref_name == 'main' }}
env:
BASE_PATH: ${{ matrix.application.base-path || '' }}
run: >
yarn vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} &&
yarn vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} &&
Expand Down

0 comments on commit 1833c0c

Please sign in to comment.