diff --git a/.github/actions/vercel/action.yaml b/.github/actions/vercel/action.yaml index 6ba96844c1..b1f2c20e72 100644 --- a/.github/actions/vercel/action.yaml +++ b/.github/actions/vercel/action.yaml @@ -107,23 +107,27 @@ runs: - name: Deploy id: deploy run: | - PROD_FLAGS="" if [ "${{ inputs.environment }}" = "production" ]; then - PROD_FLAGS="--prod --skip-domain" + pnpx vercel deploy \ + --prebuilt \ + --prod \ + --skip-domain \ + --token ${{ inputs.vercel-token }} \ + 2> >(tee info.txt >&2) | tee domain.txt + else + pnpx vercel deploy \ + --prebuilt \ + --token ${{ inputs.vercel-token }} \ + 2> >(tee info.txt >&2) | tee domain.txt fi - pnpx vercel deploy \ - --prebuilt \ - $PROD_FLAGS \ - --token ${{ inputs.vercel-token }} \ - 2> >(tee info.txt >&2) | tee domain.txt - echo "domain=$(cat ./domain.txt)" >> $GITHUB_OUTPUT echo "inspect-url=$(cat info.txt | grep 'Inspect:' | awk '{print $2}')" >> $GITHUB_OUTPUT shell: bash - name: Set Alias + if: ${{ inputs.environment != 'production' }} id: alias run: | ALIAS="${{ steps.branch.outputs.value }}"