Hi, there. I have github action that deploys production branch to different alias upon release tag published event. For this alias deploy, I want to use environment variables that are different from my production or branch deployment.
However, aliased deploy preview is not running properly because it is not reading any environment variable from my netlify site. I’ve tried to add env variables and specify deploy context as “branch deploys” and “custom branch” but both options have failed.
Is there a way to set environment variables for specific deploy alias?
My overall goal is to deploy new instance of production branch with its own environment variables without maintaining git branch
Steps to reproduce
Try to run following github action and check live URL
Describe the bug
Hi, there. I have github action that deploys production branch to different alias upon release tag published event. For this alias deploy, I want to use environment variables that are different from my production or branch deployment.
github-action.yml
However, aliased deploy preview is not running properly because it is not reading any environment variable from my netlify site. I’ve tried to add env variables and specify deploy context as “branch deploys” and “custom branch” but both options have failed.
Is there a way to set environment variables for specific deploy alias?
My overall goal is to deploy new instance of production branch with its own environment variables without maintaining git branch
Steps to reproduce
Try to run following github action and check live URL
Configuration
No response
Environment
System: OS: macOS 15.0.1 CPU: (12) arm64 Apple M2 Max Memory: 109.33 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm npmGlobalPackages: netlify-cli: 17.37.0