tangled
alpha
login
or
join now
vt3e.cat
/
www
2
fork
atom
this repo has no descr,ription
vt3e.cat
2
fork
atom
overview
issues
pulls
pipelines
ci: weh
vt3e.cat
2 weeks ago
9fe5c848
795d3362
verified
This commit was signed with the committer's
known signature
.
vt3e.cat
SSH Key Fingerprint:
SHA256:MaVgF6bXxDdD131G4rXizPh+sttp3IVsdPrj48HV0X0=
0/1
deploy.yaml
failed
21s
+14
-46
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yaml
+14
-46
.tangled/workflows/deploy.yaml
···
1
1
when:
2
2
- event: ["push"]
3
3
branch: ["main"]
4
4
-
- event: ["manual"]
5
4
6
5
engine: "nixery"
7
7
-
8
8
-
clone:
9
9
-
skip: false
10
10
-
depth: 1
11
11
-
submodules: false
12
12
-
13
6
dependencies:
14
14
-
nixpkgs:
15
15
-
- nodejs
16
16
-
- coreutils
17
17
-
- curl
18
18
-
github:NixOS/nixpkgs/nixpkgs-unstable:
19
19
-
- bun
20
20
-
- atproto-goat
7
7
+
nixpkgs: [nodejs, coreutils, curl]
8
8
+
github:NixOS/nixpkgs/nixpkgs-unstable: [bun]
21
9
22
10
environment:
23
23
-
SITE_PATH: "dist"
11
11
+
SITE_PATH: "pkgs/web/dist"
24
12
SITE_NAME: "vt3e"
25
25
-
WISP_HANDLE: "wlo.moe"
13
13
+
AT_HANDLE: "vt3e.cat"
26
14
27
15
steps:
28
28
-
- name: build
16
16
+
- name: setup
29
17
command: |
30
18
export PATH="$HOME/.nix-profile/bin:$PATH"
31
31
-
export ROOT_DIR="$PWD"
32
32
-
19
19
+
export ROOT_DIR=$(pwd)
33
20
bun install --frozen-lockfile
34
34
-
bun tsc -v
35
21
36
36
-
cd ${ROOT_DIR}/pkgs/gallery
37
37
-
rm -r ./lexicons/
38
38
-
ls -a ${ROOT_DIR}/node_modules/@typespec
39
39
-
bun run ${ROOT_DIR}/node_modules/@typespec/compiler/cmd/tsp.js compile ${PWD}/src
40
40
-
bun run ${ROOT_DIR}/node_modules/@atcute/lex-cli/cli.mjs generate -c ${PWD}/lex.config.ts
41
41
-
bunx tsc
42
42
-
43
43
-
cd ${ROOT_DIR}/pkgs/web
44
44
-
bun run build
45
45
-
mv dist ${ROOT_DIR}/dist
46
46
-
47
47
-
cd ${ROOT_DIR}
48
48
-
49
49
-
- name: publish lexicons
22
22
+
- name: build lexicons
50
23
command: |
51
51
-
cd pkgs/gallery
52
52
-
goat account login --username $WISP_HANDLE --password $WISP_APP_PASSWORD
53
53
-
goat lex publish ./lexicons/
24
24
+
cd $ROOT_DIR/pkgs/gallery
25
25
+
bun run gen
26
26
+
bun run build
54
27
55
55
-
- name: deploy
28
28
+
- name: build site
56
29
command: |
57
57
-
cd ../../
58
58
-
curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli
59
59
-
chmod +x wisp-cli
30
30
+
cd $ROOT_DIR
31
31
+
bun run build
60
32
61
61
-
./wisp-cli \
62
62
-
"$WISP_HANDLE" \
63
63
-
--path "$SITE_PATH" \
64
64
-
--site "$SITE_NAME" \
65
65
-
--password "$WISP_APP_PASSWORD"
33
33
+
bunx wispctl deploy "$AT_HANDLE" -p "$SITE_PATH" -s "$SITE_NAME" --password "$APP_PASSWORD" --yes