+41
.tangled/workflows/deploy-main.yaml
+41
.tangled/workflows/deploy-main.yaml
···
1
+
when:
2
+
- event: ["push"]
3
+
branch: ["main"]
4
+
- event: ["manual"]
5
+
6
+
engine: "nixery"
7
+
8
+
dependencies:
9
+
nixpkgs:
10
+
- bun
11
+
- coreutils
12
+
- curl
13
+
- nodejs
14
+
15
+
environment:
16
+
SITE_PATH: "dist"
17
+
SITE_NAME: "bluroma"
18
+
WISP_HANDLE: "hexmani.ac"
19
+
20
+
steps:
21
+
- name: "Install dependencies"
22
+
command: "bun install --frozen-lockfile"
23
+
24
+
- name: "Build app"
25
+
command: "bun run build"
26
+
27
+
- name: "Deploy to Wisp"
28
+
command: |
29
+
curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli
30
+
chmod +x wisp-cli
31
+
32
+
./wisp-cli deploy \
33
+
"$WISP_HANDLE" \
34
+
--path "$SITE_PATH" \
35
+
--site "$SITE_NAME" \
36
+
--password "$WISP_APP_PASSWORD"
37
+
38
+
clone:
39
+
skip: false
40
+
depth: 50
41
+
submodules: true