Jobley / website · jobley.ai / tools / cf-build.sh
| 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. |
| 4 | set -euo pipefail |
| 5 | python3 tools/build-board.py |
| 6 | rm -rf dist && mkdir dist |
| 7 | for 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/ |
| 11 | done |
| 12 | cp _headers _redirects _routes.json dist/ |