kopia lustrzana https://github.com/simonw/datasette
Build and deploy docs.db to datasette-docs-latest
rodzic
f7147260a4
commit
c37a0a93ec
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue