Skip to content

Instantly share code, notes, and snippets.

@k33g
Created April 2, 2018 13:13
Show Gist options
  • Save k33g/bd3f65f3d3cf95e7a9ac6d88437873e5 to your computer and use it in GitHub Desktop.
Save k33g/bd3f65f3d3cf95e7a9ac6d88437873e5 to your computer and use it in GitHub Desktop.
CI book
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