tangled
alpha
login
or
join now
vittoriogioda.com
/
website
0
fork
atom
My personal website
vittoriogioda.com
blog
portfolio
personal-website
0
fork
atom
overview
issues
pulls
pipelines
refactor: deploy workflow
Vittorio
2 weeks ago
291f62fb
5a25b74f
0/1
deploy.yml
failed
19s
+45
-17
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yml
+45
-17
.tangled/workflows/deploy.yml
···
1
1
+
---
1
2
when:
2
2
-
- event: ['push']
3
3
-
branch: ['main']
4
4
-
- event: ['manual']
5
5
-
6
6
-
engine: 'nixery'
7
7
-
3
3
+
- event:
4
4
+
- push
5
5
+
branch:
6
6
+
- main
7
7
+
- event:
8
8
+
- manual
9
9
+
engine: nixery
8
10
clone:
9
11
skip: false
10
12
depth: 1
11
11
-
13
13
+
submodules: true
12
14
dependencies:
13
15
nixpkgs:
14
14
-
- coreutils
15
15
-
- curl
16
16
-
16
16
+
- git
17
17
+
- nodejs
18
18
+
- gcc
19
19
+
- glibc
20
20
+
github:NixOS/nixpkgs/nixpkgs-unstable:
21
21
+
- bun
17
22
environment:
18
18
-
SITE_PATH: '.'
23
23
+
SITE_PATH: './public'
19
24
SITE_NAME: 'vittoriogioda.com'
20
25
WISP_HANDLE: 'vittoriogioda.com'
21
21
-
22
26
steps:
23
23
-
- name: deploy assets to wisp
27
27
+
- name: Initialize submodules
24
28
command: |
25
25
-
curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli
26
26
-
chmod +x wisp-cli
29
29
+
git submodule update --init --recursive
30
30
+
- name: Build wisp-cli
31
31
+
command: |
32
32
+
export PATH="$HOME/.nix-profile/bin:$PATH"
33
33
+
34
34
+
bun install
35
35
+
36
36
+
cd cli
37
37
+
38
38
+
bun install
39
39
+
bun run build
40
40
+
bun link
41
41
+
42
42
+
cd ..
43
43
+
- name: Build docs
44
44
+
command: |
45
45
+
export PATH="$HOME/.nix-profile/bin:$PATH"
46
46
+
47
47
+
cd docs
48
48
+
bun install
49
49
+
bun run build
50
50
+
- name: Deploy to Wisp.place
51
51
+
command: |
52
52
+
export PATH="$HOME/.nix-profile/bin:$PATH"
53
53
+
54
54
+
pwd
55
55
+
ls
27
56
28
28
-
# Deploy to Wisp
29
29
-
./wisp-cli deploy \
57
57
+
bun run ./cli/dist/index.js \
30
58
"$WISP_HANDLE" \
31
59
--path "$SITE_PATH" \
32
60
--site "$SITE_NAME" \