From 2abfe25d6d2a5ea19c3ed5bfb3f2db00a8ae0bc7 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Tue, 18 Oct 2016 10:16:34 -0400 Subject: [PATCH] Fix gh-pages commit messages Don't output full logs, just the commit that the build is for. And use the author, not the committer, since GitHub is almost always the committer on develop. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a44d5380..e8ff890b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ after_script: npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s) npm publish # Publish to gh-pages as most recent committer - git config --global user.email $(git log --pretty=format:"%ce" -n1) - git config --global user.name $(git log --pretty=format:"%cn" -n1) - ./node_modules/.bin/gh-pages -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -d playground -m "Build for $(git log --pretty=format:%H)" + git config --global user.email $(git log --pretty=format:"%ae" -n1) + git config --global user.name $(git log --pretty=format:"%an" -n1) + ./node_modules/.bin/gh-pages -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -d playground -m "Build for $(git log --pretty=format:%H -n1)" fi