mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Build and deploy docs.db to datasette-docs-latest
This commit is contained in:
parent
f7147260a4
commit
c37a0a93ec
1 changed files with 14 additions and 0 deletions
14
.github/workflows/deploy-latest.yml
vendored
14
.github/workflows/deploy-latest.yml
vendored
|
|
@ -26,10 +26,18 @@ jobs:
|
|||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e .[test]
|
||||
python -m pip install -e .[docs]
|
||||
python -m pip install sphinx-to-sqlite
|
||||
- name: Run tests
|
||||
run: pytest
|
||||
- name: Build fixtures.db
|
||||
run: python tests/fixtures.py fixtures.db fixtures.json
|
||||
- name: Build docs.db
|
||||
run: |-
|
||||
cd docs
|
||||
sphinx-build -b xml . _build
|
||||
sphinx-to-sqlite ../docs.db _build
|
||||
cd ..
|
||||
- name: Set up Cloud Run
|
||||
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
with:
|
||||
|
|
@ -46,3 +54,9 @@ jobs:
|
|||
--version-note=$GITHUB_SHA \
|
||||
--extra-options="--config template_debug:1" \
|
||||
--service=datasette-latest
|
||||
# Deploy docs.db to a different service
|
||||
datasette publish cloudrun docs.db \
|
||||
--branch=$GITHUB_SHA \
|
||||
--version-note=$GITHUB_SHA \
|
||||
--extra-options="--config template_debug:1" \
|
||||
--service=datasette-docs-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue