From 8291a1ab83778213277fbcbf588350e07453c807 Mon Sep 17 00:00:00 2001 From: Maxim Tschumak Date: Tue, 22 Aug 2017 10:59:52 +0200 Subject: [PATCH] improving deployment scripts - build symmetric to local build (#260) --- .travis.yml | 4 ++++ travis_deploy.sh | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e54fc9419..1c3201616 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,10 @@ script: - docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html asciidoctor/docker-asciidoctor asciidoctor -D /documents/output index.adoc - docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-pdf asciidoctor/docker-asciidoctor asciidoctor-pdf -D /documents/output index.adoc - docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoctor-epub3 asciidoctor/docker-asciidoctor asciidoctor-epub3 -D /documents/output index.adoc + - cp -r assets output/ + - cp -r -n legacy/* output/ + - mv output/index.pdf output/zalando-restful-guidelines.pdf + - mv output/index.epub output/zalando-restful-guidelines.epub after_error: - docker logs asciidoc-to-html diff --git a/travis_deploy.sh b/travis_deploy.sh index 4b1d78e54..97beda7e1 100755 --- a/travis_deploy.sh +++ b/travis_deploy.sh @@ -11,10 +11,7 @@ GH_REPO="github.com/zalando/restful-api-guidelines.git" if [[ "${TRAVIS}" -eq "true" && "${TRAVIS_SECURE_ENV_VARS}" -eq "true" && "${TRAVIS_PULL_REQUEST}" -eq "false" && "${TRAVIS_BRANCH}" -eq "master" ]]; then echo "Deploying to gh-pages branch" - cp -r assets output/ cd output - mv index.pdf zalando-restful-guidelines.pdf - mv index.epub zalando-restful-guidelines.epub git init git config user.name "${USER}" git config user.email "${EMAIL}"