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
fix: revert workflow
Vittorio
2 weeks ago
0ce82c71
291f62fb
0/1
deploy.yml
failed
4s
+16
-44
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
deploy.yml
+16
-44
.tangled/workflows/deploy.yml
reviewed
···
1
1
-
---
2
1
when:
3
3
-
- event:
4
4
-
- push
5
5
-
branch:
6
6
-
- main
7
7
-
- event:
8
8
-
- manual
9
9
-
engine: nixery
2
2
+
- event: ['push']
3
3
+
branch: ['main']
4
4
+
- event: ['manual']
5
5
+
6
6
+
engine: 'nixery'
7
7
+
10
8
clone:
11
9
skip: false
12
10
depth: 1
13
13
-
submodules: true
11
11
+
14
12
dependencies:
15
13
nixpkgs:
16
16
-
- git
17
17
-
- nodejs
18
18
-
- gcc
19
19
-
- glibc
20
20
-
github:NixOS/nixpkgs/nixpkgs-unstable:
21
21
-
- bun
14
14
+
- coreutils
15
15
+
- curl
16
16
+
22
17
environment:
23
18
SITE_PATH: './public'
24
19
SITE_NAME: 'vittoriogioda.com'
25
20
WISP_HANDLE: 'vittoriogioda.com'
26
26
-
steps:
27
27
-
- name: Initialize submodules
28
28
-
command: |
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
21
47
47
-
cd docs
48
48
-
bun install
49
49
-
bun run build
50
50
-
- name: Deploy to Wisp.place
22
22
+
steps:
23
23
+
- name: deploy assets to wisp
51
24
command: |
52
52
-
export PATH="$HOME/.nix-profile/bin:$PATH"
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
53
27
54
54
-
pwd
55
55
-
ls
56
56
-
57
57
-
bun run ./cli/dist/index.js \
28
28
+
# Deploy to Wisp
29
29
+
./wisp-cli deploy \
58
30
"$WISP_HANDLE" \
59
31
--path "$SITE_PATH" \
60
32
--site "$SITE_NAME" \