Search nix packages versions - and minimalist devshell and version manager built on nix - Flake generator for version pinned packages.
1#!/usr/bin/env bash
2set -e -a -u -o pipefail
3
4# Only run on CI
5if [ -z "${CI:-}" ]; then
6 echo "This script is meant to be run on CI only"
7 exit 1
8fi
9
10mkdir -p "$HOME"/.ssh
11echo "StrictHostKeyChecking no" >> "$HOME"/.ssh/config
12
13# Until we fix the nix builder, since esbuild hangs on the sandbox.
14DOCS="$PWD/docs/.vuepress/dist"
15rm -rf "$DOCS"
16cd docs
17npm ci
18npm run build
19
20ssh-add <(echo "$WEB_ADMIN_DEPLOY_KEY") 2>&1>/dev/null
21rsync -avPz -e ssh --delete "$DOCS"/* "$WEB_ADMIN_HOST":"~/www"