Skip to content

Commit

Permalink
Travis: change building of RoboticsManual
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
JarekParal committed Mar 8, 2019
1 parent 0c22b38 commit 167964d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
17 changes: 1 addition & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions RoboticsManual/prvnistrana.tex
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
{\tt [email protected]}

\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}}

Expand Down

0 comments on commit 167964d

Please sign in to comment.