Commit 6de7faf7 authored by Sabina Köfler's avatar Sabina Köfler
Browse files

Add pdf

parent 63be0190
Pipeline #1719 failed with stages
in 29 seconds
...@@ -8,6 +8,7 @@ cache: ...@@ -8,6 +8,7 @@ cache:
before_script: before_script:
- npm install gitbook-cli -g # install gitbook - npm install gitbook-cli -g # install gitbook
- npm install calibre # for exporting as pdf
- gitbook fetch 3.2.3 # fetch final stable version - gitbook fetch 3.2.3 # fetch final stable version
- gitbook install # add any requested plugins in book.json - gitbook install # add any requested plugins in book.json
...@@ -20,6 +21,21 @@ test: ...@@ -20,6 +21,21 @@ test:
except: except:
- main - main
pdf:
stage: build
before_script:
- mkdir ebooks
script:
- gitbook install # add any requested plugins in book.json
- gitbook pdf . ebooks/${CI_PROJECT_NAME}.pdf # pdf build
artifacts:
paths:
- ebooks/${CI_PROJECT_NAME}.pdf
expire_in: 1 day
only:
- main # this job will affect only the 'master' branch
# the 'pages' job will deploy and build your site to the 'public' path # the 'pages' job will deploy and build your site to the 'public' path
pages: pages:
stage: deploy stage: deploy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment