feat: update CI to publish site

This commit is contained in:
JasterV 2026-03-03 20:48:12 +01:00
parent 24aa6ef4ee
commit 5c1f5675b1
2 changed files with 17 additions and 3 deletions

View file

@ -1,4 +1,3 @@
# Simple workflow for deploying static content to GitHub Pages
when:
- event: push
branch: main
@ -9,10 +8,25 @@ depends_on:
steps:
build:
image: oven/bun:debian
environment:
FTP_HOST:
from_secret: FTP_HOST
FTP_USERNAME:
from_secret: FTP_USERNAME
FTP_PASSWORD:
from_secret: FTP_PASSWORD
commands:
# Install curl & make
- apt-get update && apt-get install -y curl make
# Install D2
- curl -fsSL https://d2lang.com/install.sh | sh -s --
- bun install
- bun run build
# Deploy using Sam Kirkland's script via Bun (ultra fast)
# We use 'bunx' to run the package without permanently installing it
- |
bunx @samkirkland/ftp-deploy \
--server "$FTP_HOST" \
--username "$FTP_USERNAME" \
--password "$FTP_PASSWORD" \
--local-dir "dist/" \
--server-dir "/" \
--log-level "standard"

BIN
bun.lockb

Binary file not shown.