Closed
Description
I deployed https://github-to-sqlite-releases-j7hipcg4aq-uc.a.run.app/ by running this:
#!/bin/bash
# Fetch repos for simonw and dogsheep
github-to-sqlite repos github.db simonw dogsheep -a auth.json
# Fetch releases for the repos tagged 'datasette-io'
sqlite-utils github.db "
select full_name from repos where rowid in (
select repos.rowid from repos, json_each(repos.topics) j
where j.value = 'datasette-io'
)" --csv --no-headers | while read repo;
do github-to-sqlite releases \
github.db $(echo $repo | tr -d '\r') \
-a auth.json;
sleep 2;
done;
And then deploying using this:
$ datasette publish cloudrun github.db \
--title "github-to-sqlite releases demo" \
--about_url="https://github.com/simonw/github-to-sqlite" \
--about='github-to-sqlite' \
--install=datasette-render-markdown \
--install=datasette-json-html \
--service=github-to-sqlite-releases
This should happen automatically for every release. I can run it once a day in Circle CI to keep the demo database up-to-date.