Remove deprecated gh-pages related scripts

This commit is contained in:
Alexandre Archambault 2018-09-24 09:59:44 +02:00
parent 6198ef85f2
commit 69e933dd0d
3 changed files with 0 additions and 44 deletions

View File

@ -1,7 +0,0 @@
#!/bin/bash
if [ "$1" = "clone" ]; then
git clone "https://${GH_TOKEN}@github.com/coursier/coursier.git" -b gh-pages coursier-gh-pages >/dev/null 2>&1
else
git push origin gh-pages >/dev/null 2>&1
fi

View File

@ -1,32 +0,0 @@
#!/bin/bash
set -ev
SCALA_VERSION="$1"
shift
sbt ++${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
for i in staging/*.html; do
mv "$i" "$i.0"
sed "s/src=\"\.\.\/web-/src=\"web-/g" < "$i.0" > "$i"
rm -f "$i.0"
done
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"

View File

@ -228,10 +228,5 @@ PUBLISH="${PUBLISH:-0}"
if [ "$PUBLISH" = 1 -a "$PULL_REQUEST" = false -a "$BRANCH" = master ]; then
publish
if [ "$SCALA_VERSION" = "2.11" ] && isScalaJs; then
#"$(dirname "$0")/push-gh-pages.sh" "$SCALA_VERSION"
:
fi
fi