Skip to content

Commit

Permalink
standardize build and publish system
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Jan 28, 2016
1 parent 2eb5379 commit c9925a3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
2 changes: 1 addition & 1 deletion build-pages.sh → build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OUTDIR="../grass-temporal-workshop-pages"
OUTDIR="build"

set -e

Expand Down
11 changes: 11 additions & 0 deletions get-gh-pages-branch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
remote=$(git config --get remote.origin.url)

build_dir="build"

rm -r $build_dir

git clone $remote $build_dir

cd $build_dir

git checkout gh-pages
6 changes: 3 additions & 3 deletions build-pages-and-publish.sh → publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ fi

# the actual build
echo "Building..."
./build-pages.sh
./build.sh

if [ $? -ne 0 ]; then
echo "Build failed. Use ./build-pages.sh script to debug the issue." 1>&2;
echo "Build failed. Use ./build.sh script to debug the issue." 1>&2;
exit
fi

last_commit=$(git log -n 1 --pretty=format:"%h \"%s\"")

build_dir="../grass-temporal-workshop-pages"
build_dir="build"

cd $build_dir

Expand Down

0 comments on commit c9925a3

Please sign in to comment.