tangled
alpha
login
or
join now
claycow.com
/
claycow
0
fork
atom
A Astro blog hosted on Vercel
0
fork
atom
overview
issues
pulls
pipelines
testing ipfs deployment script
Clayton Cook
2 weeks ago
12a6f067
2022fa9d
1/2
tailscale-ipfs-deploy.yaml
failed
37s
vercel-deploy.yaml
success
55s
+27
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
tailscale-ipfs-deploy.yaml
vercel-deploy.yaml
.tangled/workflows/deploy.yaml
.tangled/workflows/vercel-deploy.yaml
reviewed
+27
.tangled/workflows/tailscale-ipfs-deploy.yaml
reviewed
···
1
1
+
when:
2
2
+
- event: ['push']
3
3
+
branch: ['main']
4
4
+
5
5
+
engine: nixery
6
6
+
7
7
+
dependencies:
8
8
+
nixpkgs:
9
9
+
- kubo
10
10
+
- tailscale
11
11
+
- nodejs
12
12
+
13
13
+
steps:
14
14
+
- name: Build and Push to IPFS
15
15
+
command: |
16
16
+
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 &
17
17
+
sleep 2
18
18
+
tailscale up --authkey=$TAILSCALE_AUTHKEY --hostname=tangled-deployer
19
19
+
20
20
+
npm install & npm run build
21
21
+
22
22
+
CID=$(ipfs --api $IPFS_RPC add -rQ ./dist)
23
23
+
24
24
+
echo "Successfully deployed to IPFS!"
25
25
+
echo "CID: $CID"
26
26
+
27
27
+
ipfs --api $IPFS_RPC name publish $CID