How to set environment variables per deployment using Vercel CLI

I’m trying to use GitHub Actions to deploy the app to Vercel using this command

vercel deploy --yes --token=${{ secrets.PRIVATE_VERCEL_TOKEN }}
–build-env NEXT_PUBLIC_SOME_VAR=${{ vars.PUBLIC_SOME_VAR }}
–env NEXT_PUBLIC_SOME_OTHER_VAR=${{ vars.PUBLIC_SOME_OTHER_VAR }}

But after successful execution, the list of environment variables for Production is empty. How to set variables per deployment?

Hi, @okolobaxa! Welcome to the Vercel Community :smiley:

Here’s a guide that might be useful for your usecase.