blob: 1377d6b6f88cfc6cf3e084977d8b8fa2efd29b34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
set -o errexit
ghpages=.ghpages
git_url="git@github.com:jodersky/identicon.git"
sbt fullOptJS
mkdir -p "$ghpages"
cp -f index.html "$ghpages"
cp -f js/target/scala-2.12/identicon-opt.js "$ghpages"
case "$1" in
publish)
echo "Publishing website" >&2
git -C "$ghpages" init
git -C "$ghpages" add .
git -C "$ghpages" commit -m "Publish website" || true
git -C "$ghpages" push -f "$git_url" master:gh-pages
;;
*)
echo "Skipping publish step" >&2
;;
esac
|