Host the site and release downloads on byre.run via Cloudflare

This commit is contained in:
Ian Gulliver
2026-10-19 16:59:59 -07:00
parent b9a988e2d5
commit 0be09b3279
9 changed files with 244 additions and 11 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
site=$(cd "$(dirname "$0")" && pwd)
mac=$(dirname "$site")/mac
CLOUDFLARE_API_TOKEN=$(security find-generic-password -s byre-cloudflare -w)
CLOUDFLARE_ACCOUNT_ID=96e4d3199efaa07ddc5c33e0e2d59c01
export CLOUDFLARE_API_TOKEN CLOUDFLARE_ACCOUNT_ID
stage=$(mktemp -d)
trap 'rm -rf "$stage"' EXIT
cp "$site/index.html" "$mac/icon.svg" "$stage/"
mkdir "$stage/fonts"
cp "$mac"/fonts/*.woff2 "$stage/fonts/"
npx --yes wrangler@4.151.2 pages deploy "$stage" --project-name byre --branch main --commit-dirty=true