-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from nomeata/master
CI: Add a netlify configuration
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build] | ||
command = "./.netlify.sh" | ||
publish = "_netlify-deploy" |