From 167964d97e39e398d0f6df23677f7c4f68644434 Mon Sep 17 00:00:00 2001 From: JarekParal Date: Fri, 8 Mar 2019 10:09:27 +0100 Subject: [PATCH] Travis: change building of RoboticsManual - the PDFs are now publish together with HTML on GitHub pages and only for master branch - PDF link: https://doc.robotikabrno.cz/RoboticsManual.pdf - remove the GitHub releases - change link in README.md to RoboticsManual PDF --- .travis.yml | 17 +---------------- README.md | 2 +- RoboticsManual/prvnistrana.tex | 4 ++-- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3a3c234..53a0a39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ script: - ls -la output - ls -la output/_pdf - ls -la output/_html -- sudo mv output/_pdf/dokumentace.pdf output/_pdf/RoboticsManual_$(date +'%Y-%m-%d_%H-%M').pdf +- sudo cp output/_pdf/dokumentace.pdf output/_html/RoboticsManual.pdf before_deploy: - git config --local user.name "RoboticsBrno" @@ -61,19 +61,4 @@ deploy: on: branch: - master - - RoboticsManual - - RoboticsManualWithoutPdf - - provider: releases - api_key: - secure: $GITHUB_TOKEN - file_glob: true - file: output/_pdf/* - skip_cleanup: true - body: "**In this release, the time of build is different then the time of the commit.** The difference is two hours due to different time zone on Travis server. That is the reason why time in the name of PDF file differs." - on: - tags: true - branch: - - master - - RoboticsManual - - RoboticsManualWithoutPdf diff --git a/README.md b/README.md index c61d728..f2f4d61 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ FabLab_Ze-SolidWorks-na-Laser.img\1.PNG ... ``` -## [Robotický manuál](http://doc.robotikabrno.cz) ([PDF](https://github.com/RoboticsBrno/RoboticsBrno-guides/releases/)) +## [Robotický manuál](http://doc.robotikabrno.cz) ([PDF](http://doc.robotikabrno.cz/RoboticsManual.pdf)) Co se hodí vědět při stavbě a programování hobby robotů. ## Instalace diff --git a/RoboticsManual/prvnistrana.tex b/RoboticsManual/prvnistrana.tex index caa7273..b8c0ad0 100644 --- a/RoboticsManual/prvnistrana.tex +++ b/RoboticsManual/prvnistrana.tex @@ -75,12 +75,12 @@ {\tt dokumentace@robotikabrno.cz} \vskip 1cm - + verze 1.0 {\tt \today{ }\DTMcurrenttime} -{\tt \large PDF:\href{https://github.com/RoboticsBrno/RoboticsBrno-guides/releases}{github.com/RoboticsBrno/RoboticsBrno-guides/releases}} +{\tt \large PDF:\href{https://doc.robotikabrno.cz/RoboticsManual.pdf}{doc.robotikabrno.cz/RoboticsManual.pdf}} {\tt \large Online verze:\href{https://doc.robotikabrno.cz/}{doc.robotikabrno.cz}}