Skip to content

Deploy

Deploy #1840

Workflow file for this run

name: Deploy
on:
workflow_dispatch: {}
push:
branches: [main]
schedule:
- cron: "15 10 * * *"
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: yarn
- run: yarn --frozen-lockfile
- id: date
run: echo "date=$(TZ=America/Los_Angeles date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- id: cache-data
uses: actions/cache@v5
with:
path: docs/.observablehq/cache
key: data-${{ hashFiles('docs/data/*') }}-${{ steps.date.outputs.date }}
- run: yarn build
- run: yarn docs:build
- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v4
with:
path: docs/.observablehq/dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v5