mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
2da1a6acec
commit
f130c7c0a8
1 changed files with 16 additions and 10 deletions
26
.github/workflows/deploy-latest.yml
vendored
26
.github/workflows/deploy-latest.yml
vendored
|
|
@ -38,8 +38,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pytest -n auto -m "not serial"
|
pytest -n auto -m "not serial"
|
||||||
pytest -m "serial"
|
pytest -m "serial"
|
||||||
- name: Build fixtures.db
|
- name: Build fixtures.db and other files needed to deploy the demo
|
||||||
run: python tests/fixtures.py fixtures.db fixtures.json plugins --extra-db-filename extra_database.db
|
run: |-
|
||||||
|
python tests/fixtures.py \
|
||||||
|
fixtures.db \
|
||||||
|
fixtures-config.json \
|
||||||
|
fixtures-metadata.json \
|
||||||
|
plugins \
|
||||||
|
--extra-db-filename extra_database.db
|
||||||
- name: Build docs.db
|
- name: Build docs.db
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
run: |-
|
run: |-
|
||||||
|
|
@ -88,13 +94,13 @@ jobs:
|
||||||
}
|
}
|
||||||
return queries
|
return queries
|
||||||
EOF
|
EOF
|
||||||
- name: Make some modifications to metadata.json
|
# - name: Make some modifications to metadata.json
|
||||||
run: |
|
# run: |
|
||||||
cat fixtures.json | \
|
# cat fixtures.json | \
|
||||||
jq '.databases |= . + {"ephemeral": {"allow": {"id": "*"}}}' | \
|
# jq '.databases |= . + {"ephemeral": {"allow": {"id": "*"}}}' | \
|
||||||
jq '.plugins |= . + {"datasette-ephemeral-tables": {"table_ttl": 900}}' \
|
# jq '.plugins |= . + {"datasette-ephemeral-tables": {"table_ttl": 900}}' \
|
||||||
> metadata.json
|
# > metadata.json
|
||||||
cat metadata.json
|
# cat metadata.json
|
||||||
- name: Set up Cloud Run
|
- name: Set up Cloud Run
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
|
|
@ -112,7 +118,7 @@ jobs:
|
||||||
# Replace 1.0 with one-dot-zero in SUFFIX
|
# Replace 1.0 with one-dot-zero in SUFFIX
|
||||||
export SUFFIX=${SUFFIX//1.0/one-dot-zero}
|
export SUFFIX=${SUFFIX//1.0/one-dot-zero}
|
||||||
datasette publish cloudrun fixtures.db fixtures2.db extra_database.db \
|
datasette publish cloudrun fixtures.db fixtures2.db extra_database.db \
|
||||||
-m metadata.json \
|
-m fixtures-metadata.json \
|
||||||
--plugins-dir=plugins \
|
--plugins-dir=plugins \
|
||||||
--branch=$GITHUB_SHA \
|
--branch=$GITHUB_SHA \
|
||||||
--version-note=$GITHUB_SHA \
|
--version-note=$GITHUB_SHA \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue