Skip to content

Generate Vercel Branch Preview URL

Actions
Generate the branch preview URL for a Vercel deployment
v2.0.0
Latest
Star (3)

vercel-branch-preview-url-action

Generate the branch preview URL for a Vercel deployment

Useful if you want to know the branch preview URL ahead of a Vercel deployment being completed.

Inputs

  • vercel-team-id: your Vercel team ID
  • vercel-project-name: your Vercel project name
  • git-branch-name: the Git branch name

Outputs

  • url: the branch preview URL

Example

jobs:
  branch-preview-url:
    steps:
      - name: Generate branch preview URL
        id: branch-preview-url
        uses: PenfoldTechnology/[email protected]
        with:
          git-branch-name: ${{ github.head_ref || github.ref_name }}
          vercel-project-name: fancy-project
          vercel-team-id: fancy-team
      - name: Print URL
        run: echo "${{ steps.branch-preview-url.outputs.url }}"

Generate Vercel Branch Preview URL is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Generate the branch preview URL for a Vercel deployment
v2.0.0
Latest

Generate Vercel Branch Preview URL is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.