From 171cda61866b2134f61e18b430e3b87d4e2fd7e5 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Tue, 23 Jan 2018 14:18:03 +0100 Subject: [PATCH] New multi version documentation mechanism --- .travis.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index af7a23397..b821bff9b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,22 +21,14 @@ before_deploy: sudo -E apt-get -yq update; sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*; docker version; - pip install --user -r requirements.txt; make -j${N_MAKE_JOBS} crossbinary-parallel; make image-dirty; - mkdocs build --clean; + curl -sI https://github.com/containous/structor/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/structor_linux-amd64"}' | wget --output-document=$GOPATH/bin/structor -i -; + chmod +x $GOPATH/bin/structor; + structor -o containous -r traefik --dockerfile-url="https://raw.githubusercontent.com/containous/traefik/master/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" --exp-branch=master --debug; tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .; fi deploy: - - provider: pages - edge: true - github_token: ${GITHUB_TOKEN} - local_dir: site - skip_cleanup: true - on: - repo: containous/traefik - tags: true - condition: ${TRAVIS_TAG} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ - provider: releases api_key: ${GITHUB_TOKEN} file: dist/traefik* @@ -56,3 +48,10 @@ deploy: skip_cleanup: true on: repo: containous/traefik + - provider: pages + edge: true + github_token: ${GITHUB_TOKEN} + local_dir: site + skip_cleanup: true + on: + repo: containous/traefik