Branchwell

Jobley / website · jobley.ai / tools / cf-build.sh

Raw 695 B on a0cd79699aaaf51f42df5291ac550c89fe01a443
1#!/usr/bin/env bash
2# Cloudflare Pages build: Jobley is our recruiting board. tools/build-board.py writes the pages from
3# tools/jobs.json, then the deployable site is copied into dist/. Retired volunteer pages are left out.
4set -euo pipefail
5python3 tools/build-board.py
6rm -rf dist && mkdir dist
7for f in * ; do
8 case "$f" in dist|tools|functions|src|migrations|test|downloads|node_modules|package.json|package-lock.json|wrangler.toml|README.md|LICENSE) continue ;; esac
9 case "$f" in volunteer|careers|projects|moderators|compare|help|app|licenses|sitemap.xml|llms.txt|66365049776433ceca35572e03fca658.txt) continue ;; esac
10 cp -R "$f" dist/
11done
12cp _headers _redirects _routes.json dist/