Created
April 2, 2018 13:13
-
-
Save k33g/bd3f65f3d3cf95e7a9ac6d88437873e5 to your computer and use it in GitHub Desktop.
CI book
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
stages: | |
- 📦build | |
- 🦄tmp | |
pdf_preview: | |
stage: 🦄tmp | |
when: manual | |
environment: | |
name: preview/$CI_COMMIT_REF_NAME | |
except: | |
- /master/ | |
artifacts: | |
paths: | |
- index.pdf | |
expire_in: 1 week | |
script: | |
- asciidoctor-pdf -a pdf-style=./book.yml -a pdf-fontsdir=./fonts index.adoc | |
pdf_publication: | |
stage: 📦build | |
environment: | |
name: production | |
only: | |
- /master/ | |
artifacts: | |
paths: | |
- index.pdf | |
expire_in: 1 week | |
script: | |
- asciidoctor-pdf -a pdf-style=./book.yml -a pdf-fontsdir=./fonts index.adoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment