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 nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs 34 35 nix-channel --update 36 37 nix-shell -p pkg-config openssl --run ' 38 export PKG_CONFIG_PATH="$(pkg-config --variable pc_path pkg-config)" 39 export OPENSSL_DIR="$(nix-build --no-out-link "<nixpkgs>" -A openssl.dev)" 40 export OPENSSL_NO_VENDOR=1 41 export OPENSSL_LIB_DIR="$(nix-build --no-out-link "<nixpkgs>" -A openssl.out)/lib" 42 cargo build --release 43 ' 44 45 cd .. 46 - name: Build docs 47 command: | 48 cd docs 49 bun install 50 bun run build 51 - name: Deploy to Wisp.place 52 command: | 53 ./cli/target/release/wisp-cli \ 54 "$WISP_HANDLE" \ 55 --path "$SITE_PATH" \ 56 --site "$SITE_NAME" \ 57 --password "$WISP_APP_PASSWORD"