tangled
alpha
login
or
join now
kacaii.dev
/
blog
0
fork
atom
💻 My personal website
blog.kacaii.dev/
blog
gleam
lustre
0
fork
atom
overview
issues
pulls
pipelines
:rocket: deploy to wisp instead
kacaii.dev
1 month ago
6a874509
c4bbc383
verified
This commit was signed with the committer's
known signature
.
kacaii.dev
SSH Key Fingerprint:
SHA256:n9v7QGNWHCUv1x/483hCtPUvTsVabU5PzC5CSJMUNtI=
+22
-5
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yml
+22
-5
.tangled/workflows/deploy.yml
···
6
6
7
7
engine: nixery
8
8
9
9
+
clone:
10
10
+
skip: false
11
11
+
depth: 1
12
12
+
9
13
dependencies:
10
14
nixpkgs:
11
11
-
- nodejs
15
15
+
- coreutils
16
16
+
- curl
12
17
- tailwindcss_4
13
18
14
19
github:NixOS/nixpkgs/nixpkgs-unstable:
···
16
21
- beamMinimal28Packages.erlang
17
22
- beamMinimal28Packages.rebar3
18
23
24
24
+
environment:
25
25
+
SITE_PATH: "priv/dist"
26
26
+
SITE_NAME: "blog"
27
27
+
WISP_HANDLE: "kacaii.bsky.social"
28
28
+
19
29
steps:
20
20
-
- name: Build CSS
30
30
+
- name: build css
21
31
command: |
22
32
tailwindcss -i priv/input.css -o priv/dist/output.css
23
33
24
24
-
- name: Build HTML
34
34
+
- name: build html
25
35
command: |
26
36
export PATH="$HOME/.nix-profile/bin:$PATH"
27
37
28
38
gleam run
29
39
30
30
-
- name: Deploy to Cloudflare Workers
40
40
+
- name: deploy assets to wisp
31
41
command: |
32
32
-
npx --yes wrangler pages deploy --branch main --project-name kacaii-blog ./priv/dist/
42
42
+
curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli
43
43
+
chmod +x wisp-cli
44
44
+
45
45
+
./wisp-cli deploy \
46
46
+
"$WISP_HANDLE" \
47
47
+
--path "$SITE_PATH" \
48
48
+
--site "$SITE_NAME" \
49
49
+
--password "$WISP_APP_PASSWORD"