norbux
norbux
CCConvex Community
Created by norbux on 8/21/2024 in #support-community
Hello,
I would like to use github actions to deploy to dev, I normally do it from the cli like npx convex dev. I have created a deployment key in the Convex dashboard for both dev and production and added those as secrets in github. In my github workflow I am adding the key into an env variable like this:
env:
CONVEX_DEPLOY_KEY: "${{ secrets.CONVEX_DEPLOY_KEY_DEV }}"
env:
CONVEX_DEPLOY_KEY: "${{ secrets.CONVEX_DEPLOY_KEY_DEV }}"
Then, in the job steps I am doing this:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install convex dotenv
- run: export CONVEX_DEPLOY_KEY="$CONVEX_DEPLOY_KEY"
- run: npx convex dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install convex dotenv
- run: export CONVEX_DEPLOY_KEY="$CONVEX_DEPLOY_KEY"
- run: npx convex dev
I can see in the action output that the convex key shows obfuscated. When it gets to the point of running npx convex dev it fails because Convex expects a user interaction of visiting a URL to authorize instead of using the environment CONVEX_DEPLOY_KEY. I'm surely doing something wrong. Does anyone has a hint?
11 replies