Skip to content
Snippets Groups Projects
deploy-docs.sh 480 B
Newer Older
#!/bin/bash

rev=$(git rev-parse --short HEAD)

cd target/doc

echo '<meta http-equiv=refresh content=0;url=rustyline/index.html>' > index.html

git init
git config user.name "Katsu Kawakami"
git config user.email "kkawa1570@gmail.com"

git remote add upstream "https://$GH_TOKEN@github.com/kkawakam/rustyline.git"
git fetch upstream && git reset upstream/gh-pages

touch .

git add -A .
git commit -m "rebuild pages at ${rev}"
Katsu K's avatar
Katsu K committed
git push -q upstream HEAD:gh-pages > /dev/null 2>&1