oh good call, maybe mention it in notebook-data as an ALT. As you can see I outgrew that notebook-data and forked my own (its the next cell below). I did not want to change working code already tested so here I am with two metadata sniffer techs.
Thank you so much for this!
It took some fiddling, but I managed to get it working for my "Provider.Quest" project over here - I'm now backing up all of my notebooks (see the bottom of each notebook).
https://observablehq.com/collection/@jimpick/provider-quest
I was confused about what permissions were needed for the GitHub token, and I needed to "bind" the secret on each notebook, which was non-obvious. I made a little function called backups() for the footer of each page. If I set it to backups(1) ... then it displays the UI for enableGithubBackups() so I can bind the token, and then I set it back to backups() when I'm done. That's the way I figured out how to do it, but there's probably a better way I'm guessing.
Hello Tom, I am trying to backup a private notebook. I am unsure where to provide the API key for this to work outside of GH Action secrets. I assume this would happen after I login, however it wants me to publish the notebook first. Is there a workaround?