Deploy command not having a branch option

Accidentally deleted my reply :sweat_smile:

Here is a new one for anyone looking into this:

I was using the following documentation to build my CI/CD process with Github Actions: How can I use GitHub Actions with Vercel?

But if you want to build inside Vercel and skip the build in Github this is the code that worked for me:

deploy-preview:
    name: Deploy Preview
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.head_ref }}
      - name: Install Vercel CLI
        run: npm install --global vercel@latest
      - name: Deploy Project Artifacts to Vercel
        run: vercel deploy --token=${{ secrets.VERCEL_TOKEN }}

Again thanks @amyegan for the quick solution.

1 Like