tangled
alpha
login
or
join now
plc.jbc.lol
/
red-dwarf-mirror
2
fork
atom
Deployment scripts of my Red Dwarf mirror to wisp.place
rd.jbcrn.dev
red-dwarf
wisp
2
fork
atom
overview
issues
pulls
pipelines
ok this should work
plc.jbc.lol
4 months ago
40ae701a
c0406a38
0/1
deploy.yml
failed
20s
+41
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yml
+41
.tangled/workflows/deploy.yml
···
1
1
+
when:
2
2
+
- event: ['push']
3
3
+
branch: ['main']
4
4
+
- event: ['manual']
5
5
+
6
6
+
engine: 'nixery'
7
7
+
8
8
+
clone:
9
9
+
skip: false
10
10
+
depth: 1
11
11
+
submodules: false
12
12
+
13
13
+
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
+
21
21
+
environment:
22
22
+
SITE_PATH: 'dist'
23
23
+
SITE_NAME: 'red-dwarf'
24
24
+
WISP_HANDLE: 'jbc.lol'
25
25
+
26
26
+
steps:
27
27
+
- name: build site
28
28
+
command: |
29
29
+
export PATH="$HOME/.nix-profile/bin:$PATH"
30
30
+
bun install
31
31
+
bun run build
32
32
+
33
33
+
- name: deploy to wisp
34
34
+
command: |
35
35
+
curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli
36
36
+
chmod +x wisp-cli
37
37
+
./wisp-cli deploy \
38
38
+
"$WISP_HANDLE" \
39
39
+
--path "$SITE_PATH" \
40
40
+
--site "$SITE_NAME" \
41
41
+
--password "$WISP_APP_PASSWORD"