Skip to content
Snippets Groups Projects
Commit c36cd4d7 authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Update .deploy.sh

parent 9479926d
Branches
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@
set -e
printf "\n\n\n\n-------\n\n"
echo $(date --rfc-3339=seconds)
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
......@@ -12,15 +16,13 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
cd $DIR
git fetch origin # > /dev/null 2>> deploy.log
git reset --hard origin/master # > /dev/null 2>> deploy.log
npm install # > /dev/null 2>> deploy.log
bower install # > /dev/null 2>> deploy.log
git fetch origin
git reset --hard origin/master
# gulp deploy > /dev/null 2>> deploy.log
npm install
bower install
bundle exec jekyll clean # > /dev/null 2>> deploy.log
bundle exec jekyll build # > /dev/null 2>> deploy.log
bundle exec jekyll clean
bundle exec jekyll build
curl --request POST 'https://push.dbogatov.org/api/push/deploy' --data "project=My-Blog"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment