Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
language: ruby | ||
sudo: required | ||
before_install: | ||
- gem install asciidoctor tilt | ||
- sudo apt-get install xsltproc | ||
script: | ||
- git clone https://github.com/sethwoodworth/asciidoctor-htmlbook.git | ||
- asciidoctor -a toc -b xhtml5 -d book -T ./asciidoctor-htmlbook/htmlbook-autogen/ | ||
-d book Pride-and-Prejudice.asciidoc -o Pride-and-Prejudice.html | ||
- git clone https://github.com/sethwoodworth/HTMLBook | ||
- xsltproc -stringparam external.assets.list " " ./HTMLBook/htmlbook-xsl/epub.xsl | ||
Pride-and-Prejudice.html | ||
- VERSION=`ruby -e "require 'yaml'; meta = YAML.load_file('metadata.yaml'); puts meta['_version'];"` | ||
- git clone https://github.com/gitenberg-dev/asciidoctor-htmlbook.git | ||
- asciidoctor -a toc,version=$VERSION -b xhtml5 -T ./asciidoctor-htmlbook/htmlbook-autogen/ | ||
-d book book.asciidoc -o book.html | ||
- git clone https://github.com/gitenberg-dev/HTMLBook | ||
- xsltproc -stringparam external.assets.list " " ./HTMLBook/htmlbook-xsl/epub.xsl book.html | ||
- cp ./HTMLBook/stylesheets/epub/epub.css OEBPS | ||
- cp cover.png OEBPS/cover.png | ||
- zip -rX Pride-and-Prejudice.epub mimetype | ||
- zip -rX Pride-and-Prejudice.epub OEBPS/ META-INF/ | ||
- cp cover.jpg OEBPS/cover.jpg | ||
- if test -d "./images"; then mv ./images ./OEBPS/ ;fi | ||
- zip -rX book.epub mimetype | ||
- zip -rX book.epub OEBPS/ META-INF/ | ||
- if test -d "OEBPS/images/"; then zip -rX book.epub OEBPS/images/ ;fi | ||
- mv book.epub Pride-and-Prejudice.epub | ||
branches: | ||
only: | ||
- master | ||
deploy: | ||
skip_cleanup: true | ||
provider: releases | ||
api_key: | ||
secure: Ln3gjdzcKcvbZYY74Nw2S+7ANT7jx+3eWRknEzUyRWTDH+AJ64yOzSgp4JbLBLYpgzyq8f0WxtSY3mHcFFyG4XCjJv3WaFe6JXbcw/5we9lyftYprI66wG4t9LF6jf6/15cFMoAmg8tGBdGYwvEatUNDCEv5AaAC5NPbemqx2HxHjHat8Z3awsZu3JG1cmK4iv/cKqJoo/zBMSDLxyzps4m9mfhb+wd3csa6ydJAlSXFEx01OufNNcZ51wTjBmhvb4m202tIPcCgd/XPsjlWj2b0d49ZetRrFm6BEI4Az/14RhkM8FJkAaDQ/gs7+7vKC1zgzMWe3fA6PWTCI3dyx/StzS2BkwpPyFxDwN1M56386dJfAEFlbUZfSRhQUP17Zq9HDaOi7a4MBrxCB+L3hSGglGwsHVUKYt5aR4QTx52GnspZR1iukJRG1iPBmbG5Drlcv4Xse8hdjHy0hZdNwAMrFU0Y9uu1cb4tRRiGRjSKU7MV29QAVDh/oMPhANjOcdAZqI3gKl9Ak1MCWxZR60hRMmsnhf7VOPsQxPShXD80SrbPKKFcclNHe+/0Q9RGtzPa7U9ojFd2Hm9E46ae/If4+j1odcP6P73XeuUnLYTOOVwakU6wPcMdSn/8s85HgL7AXPrHMSe8WHh/TaYDgpiXTdeF/xvbzLgsSa446Zk= | ||
secure: WaIbG81kHcakqqLJmkmpfK2fAT32If+MKsmvUTr10NYcCVOxzQAiNKfTc3jGWi+bW6JFrhGkiFjbR1QnowJk3usUvGXbw9+2RyOnlVPt0pkcu0c6WBtZM1vJgiaRCo09iOibImkNweNM49/+T8pu9ohnQ+Mb8KXvapYoFI364vGy8OWav/tVZnagd2kiV4J7aovzwkWNPVxvgy0PqSBneTvvN2VI4tWbHY9gcMOkV0eGMm20PWvM2xBWjIFWX5XIi99CAmLmE5fsPOXf2h+/64zRgNEbKK6aax80UMLW8A7dpFgfmhgI/ce36CAjLFSbts9jSRm/FKRLWWpCvTZ6gochz+tAMIsLsqTPybRyKErln7ybhkRf1uBd8zlJssrVzrBnYKRhvrRh/pFJ3+doBxqEqjNc0jBfuojKXO4kC9w4H0ZSXWl7hzMYYBN1tWuQbnUtTizHrmN9qKKErsf6QBCny3SV8k7PTrjBsHneqOzuc1MN6bLSY6sPhtYO9uQf0xfCvxksyQ/Iakm7iQE2iq2sosg+yMjlYYymzlm0jrO/uf6D2eV97JYv2UpniIkn4wJj2Sfb/+f1a5tSBbzq+v/j1qS24mpwIhe9Y86wFGsw8onsK+xWE0PCnNAdjLjCoeKzTUDV2ZHSqzmAsrITsVLDFOAAr48nxRdiZzYNknU= | ||
file: Pride-and-Prejudice.epub | ||
on: | ||
repo: sethwoodworth/Pride-and-Prejudice_1342 | ||
"on": | ||
repo: GITenberg/Pride-and-Prejudice_1342 | ||
addons: | ||
apt: | ||
packages: | ||
- xsltproc |