Commit 987b222e authored by Thomas Fragner's avatar Thomas Fragner
Browse files

Update .gitlab-ci.yml

parent 597a77c4
Pipeline #91 passed with stages
in 2 minutes and 49 seconds
......@@ -2,13 +2,9 @@
# Full project: https://gitlab.com/pages/hugo
image: meroff/hugo-with-pandoc
stages:
- build
- publish
build-pdf:
.build-prepare:
stage: build
script:
before_script:
- git checkout .
- git submodule foreach git checkout .
- git submodule update --init --remote --recursive
......@@ -19,6 +15,15 @@ build-pdf:
- source venv/bin/activate
- pip install -r .pandoc/requirements.txt
- cp -purv .pandoc ~/
stages:
- build
- publish
build-pdf:
extends: .build-prepare
stage: build
script:
- ./bin/compile-pdf.sh
artifacts:
paths:
......@@ -27,18 +32,9 @@ build-pdf:
- master
build-hugo:
extends: .build-prepare
stage: build
script:
- git checkout .
- git submodule foreach git checkout .
- git submodule update --init --remote --recursive
- cd themes/academic
- git checkout v2.4.0
- cd ../../
- python3.6 -m venv venv
- source venv/bin/activate
- pip install -r .pandoc/requirements.txt
- cp -purv .pandoc ~/
- hugo
artifacts:
paths:
......
Markdown is supported
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