From fca309dee274e92190a7f9775f0f20c133936fdd Mon Sep 17 00:00:00 2001 From: perry Date: Mon, 25 Jan 2016 16:36:53 -0600 Subject: [PATCH] chore(CI): CI scripts permissions --- scripts/docs/deploy.sh | 50 ------------------------------------- scripts/docs/update_docs.sh | 0 2 files changed, 50 deletions(-) delete mode 100755 scripts/docs/deploy.sh mode change 100644 => 100755 scripts/docs/update_docs.sh diff --git a/scripts/docs/deploy.sh b/scripts/docs/deploy.sh deleted file mode 100755 index 855cc1dde..000000000 --- a/scripts/docs/deploy.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -ARG_DEFS=( - "--version-name=(.*)" -) - -echo "##### " -echo "##### docs/deploy.sh" -echo "#####" - -function init { - cd .. - SITE_PATH=$(readJsonProp "config.json" "sitePath") - SITE_DIR=$IONIC_DIR/$SITE_PATH -} - -function run { - ./git/clone.sh --repository="driftyco/ionic-site" \ - --directory="$SITE_DIR" \ - --branch="master" - cd .. - VERSION=$(readJsonProp "package.json" "version") - - # process new docs - gulp docs --doc-version="$VERSION_NAME" - - # compile sass vars json for ionic-site docs - gulp docs.sass-variables - cp tmp/sass.json $SITE_DIR/docs/v2/theming/overriding-ionic-variables/ - - # CD in to the site dir to commit updated docs - cd $SITE_DIR - - CHANGES=$(git status --porcelain) - - # if no changes, don't commit - if [[ "$CHANGES" == "" ]]; then - ls - echo "-- No changes detected in docs for $VERSION_NAME; docs not updated." - else - git add -A - git commit -am "docs: update for $VERSION" - git push origin master - - echo "-- Updated docs for $VERSION_NAME succesfully!" - fi - -} - -source $(dirname $0)/../utils.sh.inc diff --git a/scripts/docs/update_docs.sh b/scripts/docs/update_docs.sh old mode 100644 new mode 100755