mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
alternative-route demo, refs #1668
This commit is contained in:
parent
7a6654a253
commit
e10da9af35
1 changed files with 12 additions and 1 deletions
13
.github/workflows/deploy-latest.yml
vendored
13
.github/workflows/deploy-latest.yml
vendored
|
|
@ -42,6 +42,17 @@ jobs:
|
||||||
sphinx-build -b xml . _build
|
sphinx-build -b xml . _build
|
||||||
sphinx-to-sqlite ../docs.db _build
|
sphinx-to-sqlite ../docs.db _build
|
||||||
cd ..
|
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
|
- name: Set up Cloud Run
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@master
|
||||||
with:
|
with:
|
||||||
|
|
@ -54,7 +65,7 @@ jobs:
|
||||||
gcloud config set project datasette-222320
|
gcloud config set project datasette-222320
|
||||||
export SUFFIX="-${GITHUB_REF#refs/heads/}"
|
export SUFFIX="-${GITHUB_REF#refs/heads/}"
|
||||||
export SUFFIX=${SUFFIX#-main}
|
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 \
|
-m fixtures.json \
|
||||||
--plugins-dir=plugins \
|
--plugins-dir=plugins \
|
||||||
--branch=$GITHUB_SHA \
|
--branch=$GITHUB_SHA \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue