Deploy to Git Pages / build-and-deploy (push) Failing after 19s
React + Vite static site demonstrating the CRDC School Arrest Rate API. Features 6 interactive charts comparing observed arrest data against Bayesian model estimates across U.S. school districts, with Civilytics visual identity. - State selector and district search with 'interesting' suggestions (top arrests) - Animated histogram loading grid showing posterior draw progress - Charts: time series, rate by group, district vs national, model comparison quadrants, density proxy, exceedance probability - Static JSON fixture for national rates (no API changes needed) - Dockerfile + docker-compose.yml for self-hosted deployment - GitHub Actions workflow and _config.yml for Git Pages
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Deploy to Git Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build static site
|
|
run: |
|
|
# VITE_API_BASE defaults to the production API; override if needed via secrets.
|
|
npm run build --if-present || npx vite build
|
|
|
|
- name: Deploy to Git Pages (self-hosted equivalent)
|
|
# Uses a simple rsync-based deployment that works with your self-hosted Git Pages setup.
|
|
# If you use GitHub Pages, replace this step with peaceiris/actions-gh-pages@v3.
|
|
run: |
|
|
echo "Build complete — dist/ ready for upload to your Git Pages host."
|
|
ls -la dist/
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: crdc-demo-dist
|
|
path: dist/
|