noob saibotN
Convex Community2y ago
5 replies
noob saibot

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:
jobs:
  convex_deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup
        uses: ./tooling/github/setup

      - name: Convex Deploy
        working-directory: apps/api
        run: pnpm run build
        env:
            CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
            CONVEX_URL: ${{ secrets.CONVEX_URL }}


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 error
Was this page helpful?