#!/usr/bin/env bash

# Copyright (C) Lightbend Inc. <https://www.lightbend.com>

# shellcheck source=scripts/scriptLib
. "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/scriptLib"

cd "$BASEDIR"

if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
  printMessage "RUNNING PUBLISH LOCAL"
  runSbt "+publishLocal"
  printMessage "PUBLISH LOCAL PASSED"
else
    printMessage "SKIPPING PUBLISH LOCAL"
fi
