aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-24 07:33:40 -0200
committerEuAndreh <eu@euandre.org>2018-12-24 07:33:40 -0200
commit3ae13a308db8e1408d50975d6cd2c20dcaea2eb0 (patch)
tree247dd699d000406cf3e023452b4c0421ad26dcb2 /.build.yml
parentRemove =all= target from Makefile. (diff)
downloadeuandre.org-3ae13a308db8e1408d50975d6cd2c20dcaea2eb0.tar.gz
euandre.org-3ae13a308db8e1408d50975d6cd2c20dcaea2eb0.tar.xz
Build and publish website using Nix; remove Makefile.
Diffstat (limited to '')
-rw-r--r--.build.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.build.yml b/.build.yml
index 712fbbf..479e6af 100644
--- a/.build.yml
+++ b/.build.yml
@@ -1,4 +1,6 @@
image: debian/stretch
+packages:
+ - curl
triggers:
- condition: failure
action: email
@@ -8,9 +10,11 @@ sources:
secrets:
- 7159f943-811f-402d-bb6d-37cd764dc728
tasks:
- - build: |
- cd website/
- make build
+ - setup : |
+ curl https://nixos.org/nix/install | sh
+ echo '. $HOME/.nix-profile/etc/profile.d/nix.sh' >> $HOME/.buildenv
- publish: |
cd website/
- make publish
+ nix-build -A publishScript
+ source env.sh
+ ./result/bin/publish.sh