Host the site and release downloads on byre.run via Cloudflare
This commit is contained in:
Executable
+14
@@ -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
|
||||
Reference in New Issue
Block a user