This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Update Starbucks store data (#1193) #517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Datasette | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
# We need full history to introspect created/updated: | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v2 | |
name: Configure pip caching | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install datasette datasette-publish-vercel | |
- name: Deploy Datasette using Vercel | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
run: |- | |
datasette publish vercel cn-starbucks.sqlite \ | |
--token $VERCEL_TOKEN \ | |
--project cn-starbucks \ | |
--public |