Deploy Convex with Github Actions: Error: Please set CONVEX_DEPLOY_KEY to a new key
I would like to deploy convex to production via a Github Action. Here is a snippet of the action:
I have defined the variables
CONVEX_DEPLOY_KEY
and CONVEX_URL
in Github secrets for the production environment. But when I run the action, it constantly fails with error:
Please set CONVEX_DEPLOY_KEY to a new key which you can find on your Convex dashboard.
But I have successfully generated a deployment key in my project dashboard. Not sure how I can fix this error4 Replies
Could you confirm that the deploy key is actually being picked up by your GH action? (like have another step that just echos them)
Also I remember having some struggles myself with having to set this as a repository secret vs. an environment secret (I don't actually remember which one was correct, but if I had to guess, I think it's repo secret)
Hi @sshader It looks like I can't echo secrets for debug purpose: Github is obfuscating secrets values. I decided to add the same values in the environment
secrets
and variables
sections. But I'm still getting the same error...
Ok, it has worked! I had to add the variables in the github actions secrets
section.@noob saibot could you share the repo link even I want to add it
@Abhishek unfortunately the repo belongs to a private repository. But I can share here a screenshot of where I added these variables: