]> git.sur5r.net Git - i3/i3/blob - travis/deploy-github-pages.sh
travis/cleanup-bintray: use dpkg --compare-versions (#2453)
[i3/i3] / travis / deploy-github-pages.sh
1 #!/bin/sh
2
3 set -e
4 set -x
5
6 GITVERSION=$(git describe --tags)
7
8 mkdir build.i3wm.org
9 cp -r deb/CLANG build.i3wm.org/clang-analyze
10 cp -r deb/COPY-DOCS build.i3wm.org/docs
11 cd build.i3wm.org
12 echo build.i3wm.org > CNAME
13 git init
14
15 git config user.name "Travis CI"
16 git config user.email "i3bot@i3wm.org"
17 git add .
18 git commit -m "Publish docs/static analysis for github.com/i3/i3 v${GITVERSION}"
19
20 # Hide stdout/stderr because it might contain sensitive info.
21 set +x
22 echo "git push"
23 git push --force --quiet "https://${GH_TOKEN}@github.com/i3/build.i3wm.org.git" master:gh-pages >/dev/null 2>&1