diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 72421852..498e78df 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -23,4 +23,9 @@ jobs: - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + id: deploy + run: | + DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | grep -o 'https://[^ ]*') + echo "::set-output name=url::$DEPLOY_URL" + - name: Alias Deployment to Custom Domain + run: vercel alias ${{ steps.deploy.outputs.url }} https://weplanplans-dev.vercel.app/ --token=${{ secrets.VERCEL_TOKEN }}