chore(): update scripts for site

This commit is contained in:
Andrew
2014-07-31 15:21:49 -06:00
parent 42b0b63a28
commit efc5b31540
2 changed files with 10 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ function init {
../clone/clone.sh --repository="driftyco/ionic-site" \
--directory="$SITE_DIR" \
--branch="gh-pages"
--branch="master"
}
function run {
@@ -28,9 +28,10 @@ function run {
$(replaceInFile "_config.yml" "latest_version:.*$" "latest_version: $VERSION \"$CODENAME\"")
$(replaceInFile "_config.yml" "latest_release_date:.*$" "latest_release_date: $DATE")
git add -A
git commit -am "release: $VERSION"
git push -q origin master
# git add -A
# git commit -am "release: $VERSION"
# git push -q origin master
./deploy.sh
echo "-- Published ionic-site config v$VERSION successfully!"
}

View File

@@ -13,7 +13,7 @@ function init {
../clone/clone.sh --repository="driftyco/ionic-site" \
--directory="$SITE_DIR" \
--branch="gh-pages"
--branch="master"
}
# Example: ./scripts/site/publish.sh --action=docs --version-name=nightly
@@ -33,9 +33,10 @@ function run {
if [[ "$CHANGES" == "" ]]; then
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 -q origin gh-pages
# git add -A
# git commit -am "docs: update for $VERSION"
# git push -q origin gh-pages
./deploy.sh
echo "-- Updated docs for $VERSION_NAME succesfully!"
fi