publish.sh 639 B

12345678910111213141516
  1. #!/usr/bin/env sh
  2. # CI publish script
  3. export DITA_HOME=$PWD/dita-ot-$DITA_OT_VERSION
  4. export DITA_OT_DEV=$(find $PWD -name 'dita-ot-*+*' -type d | head -1)
  5. export SITE_DIR=$PWD/dita-ot.github.io
  6. #if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "develop" ]; then
  7. # Remove target output directory before generating new output
  8. rm -rf "$SITE_DIR/dev"
  9. # Re-create /dev folder & generate site output there
  10. ./gradlew -b site.gradle -Ddita.home=$DITA_HOME -Doutput.dir=$SITE_DIR/dev -PditaHomeSrc=$DITA_OT_DEV --info --stacktrace --no-daemon
  11. #else
  12. # ./gradlew -Ddita.home=$DITA_HOME html --info --stacktrace --no-daemon
  13. #fi