Bump a few versions, deploy on push to main

Refs:
- #2511
This commit is contained in:
Simon Willison 2025-11-09 15:42:11 -08:00 committed by GitHub
commit 354d7a2873
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,10 +2,10 @@ name: Deploy latest.datasette.io
on: on:
workflow_dispatch: workflow_dispatch:
# push: push:
# branches: branches:
# - main - main
# - 1.0-dev # - 1.0-dev
permissions: permissions:
contents: read contents: read
@ -15,19 +15,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out datasette - name: Check out datasette
uses: actions/checkout@v3 uses: actions/checkout@v5
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v6 uses: actions/setup-python@v6
# Using Python 3.10 for gcloud compatibility:
with: with:
python-version: "3.10" python-version: "3.13"
- uses: actions/cache@v4 cache: pip
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
@ -104,7 +97,7 @@ jobs:
# cat metadata.json # cat metadata.json
- id: auth - id: auth
name: Authenticate to Google Cloud name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2 uses: google-github-actions/auth@v3
with: with:
credentials_json: ${{ secrets.GCP_SA_KEY }} credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK - name: Set up Cloud SDK