Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .netlify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

#
# Deploy a preview of the interface specification to netlify
#

set -e

export NP_GIT=$(which git)

wget -nv https://github.com/DavHau/nix-portable/releases/download/v009/nix-portable
chmod +x nix-portable

./nix-portable nix-build -A interface-spec default.nix

# The "result" symlink only valid inside the nix-portable sandbox, so use nix-shell
./nix-portable nix-shell -p bash --run "cp -rL result/spec/ _netlify-deploy"

chmod -R u+w _netlify-deploy
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
command = "./.netlify.sh"
publish = "_netlify-deploy"