mirror of
https://codeberg.org/JasterV/jaster.xyz.git
synced 2026-04-26 18:10:01 +00:00
feat: update CI to publish site
This commit is contained in:
parent
24aa6ef4ee
commit
5c1f5675b1
2 changed files with 17 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
# Simple workflow for deploying static content to GitHub Pages
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|
@ -9,10 +8,25 @@ depends_on:
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: oven/bun:debian
|
image: oven/bun:debian
|
||||||
|
environment:
|
||||||
|
FTP_HOST:
|
||||||
|
from_secret: FTP_HOST
|
||||||
|
FTP_USERNAME:
|
||||||
|
from_secret: FTP_USERNAME
|
||||||
|
FTP_PASSWORD:
|
||||||
|
from_secret: FTP_PASSWORD
|
||||||
commands:
|
commands:
|
||||||
# Install curl & make
|
|
||||||
- apt-get update && apt-get install -y curl make
|
- apt-get update && apt-get install -y curl make
|
||||||
# Install D2
|
|
||||||
- curl -fsSL https://d2lang.com/install.sh | sh -s --
|
- curl -fsSL https://d2lang.com/install.sh | sh -s --
|
||||||
- bun install
|
- bun install
|
||||||
- bun run build
|
- 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
BIN
bun.lockb
Binary file not shown.
Loading…
Reference in a new issue