Skip to content

Commit

Permalink
improving deployment scripts - build symmetric to local build (zaland…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-tschumak committed Aug 22, 2017
1 parent f3e05b1 commit 8291a1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions travis_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 8291a1a

Please sign in to comment.