Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
wisp.place
1---
2when:
3 - event:
4 - push
5 branch:
6 - main
7 - event:
8 - manual
9engine: nixery
10clone:
11 skip: false
12 depth: 1
13 submodules: true
14dependencies:
15 nixpkgs:
16 - git
17 - gcc
18 github:NixOS/nixpkgs/nixpkgs-unstable:
19 - rustc
20 - cargo
21 - bun
22environment:
23 WISP_HANDLE: wisp.place
24 SITE_PATH: docs/dist
25 SITE_NAME: docs
26steps:
27 - name: Initialize submodules
28 command: |
29 git submodule update --init --recursive
30 - name: Build wisp-cli
31 command: |
32 cd cli
33
34 export PATH="$HOME/.nix-profile/bin:$PATH"
35
36 nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
37
38 nix-channel --update
39
40 nix-shell -p pkg-config openssl --run '
41 export PKG_CONFIG_PATH="$(pkg-config --variable pc_path pkg-config)"
42 export OPENSSL_DIR="$(nix-build --no-out-link "<nixpkgs>" -A openssl.dev)"
43 export OPENSSL_NO_VENDOR=1
44 export OPENSSL_LIB_DIR="$(nix-build --no-out-link "<nixpkgs>" -A openssl.out)/lib"
45 cargo build --release
46 '
47
48 cd ..
49 - name: Build docs
50 command: |
51 cd docs
52 export PATH="$HOME/.nix-profile/bin:$PATH"
53 bun install
54 bun run build
55 - name: Deploy to Wisp.place
56 command: |
57 ./cli/target/release/wisp-cli \
58 "$WISP_HANDLE" \
59 --path "$SITE_PATH" \
60 --site "$SITE_NAME" \
61 --password "$WISP_APP_PASSWORD"