Skip to content

sea floor: GEBCO 2025 relief + depth colour + contours composed into … #46

sea floor: GEBCO 2025 relief + depth colour + contours composed into …

sea floor: GEBCO 2025 relief + depth colour + contours composed into … #46

Workflow file for this run

# build the explorer and publish it to GitHub Pages (calcofi.io/explore/). the data objects are not in the
# repo: VITE_DATA_URL points the app at GCS (the Phase-0 spike cut for now; the release catalog in Phase 1).
name: pages
on:
push: { branches: [main] }
workflow_dispatch:
permissions: { contents: read, pages: write, id-token: write }
concurrency: { group: pages, cancel-in-progress: true }
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22, cache: npm }
- run: npm ci
- run: npx tsc --noEmit
- run: npx vite build
env:
# the bucket root the catalog's object paths hang off, and the releases prefix under it.
# explore-dev-root/explore-dev = the Phase-1 objects cut from v2026.08.25 with the real
# release functions; switches to ducklake/releases once a release ships them (Phase 1).
VITE_DATA_URL: https://storage.googleapis.com/calcofi-db/explore-dev-root/
VITE_RELEASE_PREFIX: explore-dev/releases
VITE_BASE: /explore/
# the feedback endpoint (calcofi4r::cc_feedback_script() deployed as a web app): a repository variable, so
# setting it needs no code change; empty = the dialog offers the prefilled GitHub issue only
VITE_FEEDBACK_URL: ${{ vars.VITE_FEEDBACK_URL }}
# the brand v2 preview at calcofi.io/explore/v2/ (plan 2026-08-30, Phase 2): the same app on VITE_BRAND=v2, until the
# 9/8 decision. The flip is VITE_BRAND=v2 on the build above and deleting this step.
- run: npx vite build --outDir dist/v2
env:
VITE_DATA_URL: https://storage.googleapis.com/calcofi-db/explore-dev-root/
VITE_RELEASE_PREFIX: explore-dev/releases
VITE_BASE: /explore/v2/
VITE_BRAND: v2
VITE_FEEDBACK_URL: ${{ vars.VITE_FEEDBACK_URL }}
- uses: actions/upload-pages-artifact@v3
with: { path: dist }
deploy:
needs: build
runs-on: ubuntu-latest
environment: { name: github-pages, url: "${{ steps.deployment.outputs.page_url }}" }
steps:
- id: deployment
uses: actions/deploy-pages@v4