Build command failing #1895
-
Hello, I am working on deploying an Observable App via GitHub Actions. I am using the example workflow given in the Observable docs. I can run everything locally. I can even run the Here is the error from the GitHub Actions workflow:
And here is my GitHub Actions workflow:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you share your data loader? I suspect that the data loader, or one of the files it imports, is trying to use an environment variable that is not set in the GitHub workflow. You'll have to specify those in the workflow YAML file. |
Beta Was this translation helpful? Give feedback.
-
Ahh, that makes sense. I have some database connection vars set in GitHub for a file that the data loader is using. I am also still new to GitHub Actions, so I bet I have that wrong. Here is my data loader:
And the file the data loader imports is this:
How do I set env vars for GitHub to use? |
Beta Was this translation helpful? Give feedback.
Whoops. I was able to figure out how add the env variables. Needed to recreate my .env file in the build step and then delete it afterwards. Thanks for your help!