From 1684da9ccd863d172e9f0ba2e108ee576cce6841 Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Mon, 13 May 2024 11:27:04 +0100 Subject: [PATCH] auto deploy vercel to prod (only vercel) --- .github/workflows/ui-preview.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ui-preview.yaml b/.github/workflows/ui-preview.yaml index 442011fac5..aecc0ff5a7 100644 --- a/.github/workflows/ui-preview.yaml +++ b/.github/workflows/ui-preview.yaml @@ -87,6 +87,12 @@ jobs: export DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}) echo "DEPLOY_URL=$DEPLOY_URL" >> $GITHUB_ENV echo "::set-output name=url::$DEPLOY_URL" + - name: Deploy to Vercel (Output Prod) + if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + run: | + export DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}) + echo "DEPLOY_URL=$DEPLOY_URL" >> $GITHUB_ENV + echo "::set-output name=url::$DEPLOY_URL" - name: Update PR Description if: ${{ github.event_name == 'pull_request' && format('refs/heads/{0}', github.event.repository.default_branch) != github.ref }} uses: actions/github-script@v3