From 12ba59c888d8f730ead7b3fcebaf0e93cb35c1b3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 14 Feb 2020 21:59:41 -0300 Subject: .build.yml: Don't publish when not on master branch --- .build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.build.yml b/.build.yml index 5e3c5bf..3dd1f1a 100644 --- a/.build.yml +++ b/.build.yml @@ -13,6 +13,11 @@ tasks: - tests: | cd website/ nix-build -A test + - check-branch: | + cd website/ + if [[ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]]; then + complete-build; + fi - docs: | cd website/ nix-build -A publishScript -- cgit v1.2.3