Skip to content

Commit

Permalink
Update travis.docgen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
smolkaj authored Aug 9, 2019
1 parent 883252f commit b436ff4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci/travis.docgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ rm -rf $DOCDIR

git clone https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} $DOCDIR 2>&1 | sed -e "s/$GH_TOKEN/!REDACTED!/g"
git -C $DOCDIR checkout gh-pages || git -C $DOCDIR checkout --orphan gh-pages
git -C $DOCDIR clean -xdf

git rm -r '*'
DOCFILES=$(echo $DOCSRC/*)
cp -R $DOCFILES $DOCDIR

Expand All @@ -32,4 +32,3 @@ git -C $DOCDIR add .
git -C $DOCDIR commit --allow-empty -m "Travis build $TRAVIS_BUILD_NUMBER pushed docs to gh-pages"
git -C $DOCDIR push origin gh-pages 2>&1 | sed -e "s/$GH_TOKEN/!REDACTED!/g"
echo "[docgen] updated docs successfully!"

0 comments on commit b436ff4

Please sign in to comment.