From 52a77ed96fa6a2ee8479143f63d8a74fb4ebc8d2 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Mon, 9 Sep 2024 14:28:29 +0200 Subject: [PATCH] chore: fix demo app deployment --- .github/workflows/workflow.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a1d69bf2..12064909 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -57,17 +57,17 @@ jobs: STREAM_USER_ID: STREAM_CHANNELS_FILTER: '{"type": "messaging"}' run: > - yarn vercel pull --yes --environment=${{ github.ref == 'refs/heads/v5' && 'production' || 'preview' }} --token=${{ secrets.VERCEL_TOKEN }} && - yarn vercel build ${{ github.ref == 'refs/heads/v5' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }} && - yarn vercel deploy ${{ github.ref == 'refs/heads/v5' && '--prod' || '' }} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + yarn vercel pull --yes --environment=${{ github.ref == 'refs/heads/master' && 'production' || 'preview' }} --token=${{ secrets.VERCEL_TOKEN }} && + yarn vercel build ${{ github.ref == 'refs/heads/master' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }} && + yarn vercel deploy ${{ github.ref == 'refs/heads/master' && '--prod' || '' }} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - name: Copy docs from stream-chat-css - run: npm run ${{ (github.ref == 'refs/heads/v5' || contains(github.head_ref, 'v5')) && 'copy-css-docs:v5' || 'copy-css-docs' }} + run: npm run ${{ (github.ref == 'refs/heads/master' || contains(github.head_ref, 'v5')) && 'copy-css-docs:v5' || 'copy-css-docs' }} - name: Generate docs run: | - npm run ${{ (github.ref == 'refs/heads/v5' || contains(github.head_ref, 'v5')) && 'generate-docs:v5' || 'generate-docs' }} + npm run ${{ (github.ref == 'refs/heads/master' || contains(github.head_ref, 'v5')) && 'generate-docs:v5' || 'generate-docs' }} - name: Push to docusaurus uses: GetStream/push-stream-chat-docusaurus-action@main with: - target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v5') && 'production' || 'staging' }} + target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/master') && 'production' || 'staging' }} env: DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}