deploy to github #1690
-
I have created an empty observable framework project and deployed it publicly to observable: https://observablehq.com/projects/@rnd/test After that I linked it to an empty public repository on github and wanted to deploy it to this repository: https://github.com/christjohannes/test My aim is to update a framework project daily via github actions. But the deploying to github throws an error. This is my log:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You cannot deploy an empty repository to the Observable Cloud, there is nothing to deploy. You'll need to put Framework code in the repository. Did you create the data app initially with "npm run deploy"? The place you ran that is the repository you should push to GitHub. Once you have that working, you won't need need to use GitHub Actions at all, Observable Cloud has a built in scheduling feature. You can see the docs for it here: https://observablehq.com/documentation/data-apps/schedules |
Beta Was this translation helpful? Give feedback.
-
And once the Framework project is in a Github repo, the static site can be built and deployed to Github Pages with a Github workflow like this one https://github.com/observablehq/framework/blob/main/.github/workflows/deploy.yml |
Beta Was this translation helpful? Give feedback.
You cannot deploy an empty repository to the Observable Cloud, there is nothing to deploy. You'll need to put Framework code in the repository.
Did you create the data app initially with "npm run deploy"? The place you ran that is the repository you should push to GitHub.
Once you have that working, you won't need need to use GitHub Actions at all, Observable Cloud has a built in scheduling feature. You can see the docs for it here: https://observablehq.com/documentation/data-apps/schedules