Skip to content

Commit

Permalink
add script to auto publish repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
lotabout committed Jun 22, 2014
1 parent ad1b138 commit 57fe9cd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions publish_wiki.sh
@@ -0,0 +1,14 @@
#!/bin/bash

echo "Using emacs to publish all org projects..."
emacs --batch -l ~/.emacs -f org-publish-all

cur_DATETIME=$(date +"%Y/%m/%d-%H:%M")

echo "Commit changes to git"
cd ~/Dropbox/org/orgwiki_html
git checkout gh-pages
git add .
git commit -a -m "Auto commit on $cur_DATETIME"

git push origin gh-pages --force

0 comments on commit 57fe9cd

Please sign in to comment.