I'm trying to use my actions CI to do both my production and staging deploys. Unfortunately I was using netlify/actions/build for production, but when I went to set it up for staging (commits to my develop branch are what we consider staging) I didn't see an option to set a branch or contexts. As far as I can see, it'll just always use the production branch.
I would have liked to PR in an option for this, but there is no public documentation for the /api/v1/github/$GITHUB_REPOSITORY/build endpoint, so I assume it's for internal use only. Perhaps the better way for me to do this is with netlify/actions/cli using the build command?
I'm trying to use my actions CI to do both my production and staging deploys. Unfortunately I was using
netlify/actions/buildfor production, but when I went to set it up for staging (commits to mydevelopbranch are what we consider staging) I didn't see an option to set a branch or contexts. As far as I can see, it'll just always use the production branch.I would have liked to PR in an option for this, but there is no public documentation for the
/api/v1/github/$GITHUB_REPOSITORY/buildendpoint, so I assume it's for internal use only. Perhaps the better way for me to do this is withnetlify/actions/cliusing thebuildcommand?