mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
27084caa04
commit
e40fad0287
2 changed files with 13 additions and 11 deletions
13
.github/workflows/deploy-latest.yml
vendored
13
.github/workflows/deploy-latest.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 1.0-dev
|
- cloudrun-fix
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -101,12 +101,13 @@ jobs:
|
||||||
# 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
|
- id: auth
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
name: Authenticate to Google Cloud
|
||||||
|
uses: google-github-actions/auth@v2
|
||||||
with:
|
with:
|
||||||
version: '318.0.0'
|
credentials_json: ${{ secrets.GCP_SA_KEY }}
|
||||||
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
|
- name: Set up Cloud SDK
|
||||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
uses: google-github-actions/setup-gcloud@v3
|
||||||
- name: Deploy to Cloud Run
|
- name: Deploy to Cloud Run
|
||||||
env:
|
env:
|
||||||
LATEST_DATASETTE_SECRET: ${{ secrets.LATEST_DATASETTE_SECRET }}
|
LATEST_DATASETTE_SECRET: ${{ secrets.LATEST_DATASETTE_SECRET }}
|
||||||
|
|
|
||||||
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
|
|
@ -73,12 +73,13 @@ jobs:
|
||||||
DISABLE_SPHINX_INLINE_TABS=1 sphinx-build -b xml . _build
|
DISABLE_SPHINX_INLINE_TABS=1 sphinx-build -b xml . _build
|
||||||
sphinx-to-sqlite ../docs.db _build
|
sphinx-to-sqlite ../docs.db _build
|
||||||
cd ..
|
cd ..
|
||||||
- name: Set up Cloud Run
|
- id: auth
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
name: Authenticate to Google Cloud
|
||||||
|
uses: google-github-actions/auth@v2
|
||||||
with:
|
with:
|
||||||
version: '318.0.0'
|
credentials_json: ${{ secrets.GCP_SA_KEY }}
|
||||||
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
|
- name: Set up Cloud SDK
|
||||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
uses: google-github-actions/setup-gcloud@v3
|
||||||
- name: Deploy stable-docs.datasette.io to Cloud Run
|
- name: Deploy stable-docs.datasette.io to Cloud Run
|
||||||
run: |-
|
run: |-
|
||||||
gcloud config set run/region us-central1
|
gcloud config set run/region us-central1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue