Codebase list i3-gaps / c4f5cf05-a1de-4d1f-9ca3-e3d4d1594fd4/main travis / deploy-github-pages.sh
c4f5cf05-a1de-4d1f-9ca3-e3d4d1594fd4/main

Tree @c4f5cf05-a1de-4d1f-9ca3-e3d4d1594fd4/main (Download .tar.gz)

deploy-github-pages.sh @c4f5cf05-a1de-4d1f-9ca3-e3d4d1594fd4/mainraw · history · blame

#!/bin/sh

set -e
set -x

GITVERSION=$(git describe --tags)

mkdir build.i3wm.org
cp -r deb/COPY-DOCS build.i3wm.org/docs
cd build.i3wm.org
echo build.i3wm.org > CNAME
git init

git config user.name "Travis CI"
git config user.email "[email protected]"
git add .
git commit -m "Publish docs/static analysis for github.com/i3/i3 v${GITVERSION}"

# Hide stdout/stderr because it might contain sensitive info.
set +x
echo "git push"
git push --force --quiet "https://${GH_TOKEN}@github.com/i3/build.i3wm.org.git" master:gh-pages >/dev/null 2>&1