mirror of https://github.com/sbt/sbt.git
27 lines
559 B
Bash
27 lines
559 B
Bash
|
|
#!/bin/bash
|
||
|
|
set -ev
|
||
|
|
|
||
|
|
TRAVIS_SCALA_VERSION="$1"
|
||
|
|
shift
|
||
|
|
|
||
|
|
sbt ++${TRAVIS_SCALA_VERSION} web/fastOptJS
|
||
|
|
|
||
|
|
HELPER="$(readlink -f "$(dirname "$0")/push-gh-pages-helper.sh")"
|
||
|
|
|
||
|
|
"$HELPER" clone
|
||
|
|
cd coursier-gh-pages
|
||
|
|
|
||
|
|
[ ! -e staging ] || git rm -r staging
|
||
|
|
|
||
|
|
mkdir staging
|
||
|
|
DIR="$(for i in "../web/target/scala-"*; do echo "$i"; done)"
|
||
|
|
cp "$DIR/web-"*.js* staging
|
||
|
|
cp "$DIR/classes/index"*.html staging
|
||
|
|
cp -R "$DIR/classes/css" staging
|
||
|
|
|
||
|
|
git config user.name "Travis-CI"
|
||
|
|
git config user.email "invalid@travis-ci.com"
|
||
|
|
git add staging
|
||
|
|
git commit -m "Deploy to gh-pages"
|
||
|
|
"$HELPER"
|