Skip to content

Commit

Permalink
alternative-route demo, refs #1668
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 20, 2022
1 parent 7a6654a commit e10da9a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ jobs:
sphinx-build -b xml . _build
sphinx-to-sqlite ../docs.db _build
cd ..
- name: Set up the alternate-route demo
run: |
echo '
from datasette import hookimpl
@hookimpl
def startup(datasette):
db = datasette.get_database("fixtures2")
db.route = "alternative-route"
' > plugins/alternative_route.py
cp fixtures.db fixtures2.db
- name: Set up Cloud Run
uses: google-github-actions/setup-gcloud@master
with:
Expand All @@ -54,7 +65,7 @@ jobs:
gcloud config set project datasette-222320
export SUFFIX="-${GITHUB_REF#refs/heads/}"
export SUFFIX=${SUFFIX#-main}
datasette publish cloudrun fixtures.db extra_database.db \
datasette publish cloudrun fixtures.db fixtures2.db extra_database.db \
-m fixtures.json \
--plugins-dir=plugins \
--branch=$GITHUB_SHA \
Expand Down

0 comments on commit e10da9a

Please sign in to comment.