Commit c2cc40e0 authored by Thomas Boni's avatar Thomas Boni
Browse files

add a step to return error code if there is nothing to deploy

parent 1644117b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ pages:
    PAGES_BUILD_PATH: 'documentation_build/'
  script:
    - if [ "$PAGES_BUILD_PATH" != "public" -a "$PAGES_BUILD_PATH" != "public/" ]; then mv "$PAGES_BUILD_PATH" public; fi
    - if [ -d "public" ]; then echo "Nothing to deploy"; exit 1; fi
  artifacts:
    paths:
      - public