summaryrefslogtreecommitdiffstats
path: root/tools/travis-push.sh
blob: da77107da490df4b63cccff8f6d0a3b234315f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -ue

git config --global user.email 'mxebot@gmail.com'
git config --global user.name 'MXEBot as Travis CI'
git config --global push.default simple
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials
git remote set-url origin 'https://github.com/mxe/mxe.git'
git commit -a -m 'Update versions.json & build-matrix.html' || true
git push origin HEAD:master
git push origin HEAD:gh-pages