Commit c680521f authored by Stefan Oppl's avatar Stefan Oppl
Browse files

Update .gitlab-ci.yml

parent 30fccc80
Pipeline #2719 failed with stages
in 12 seconds
......@@ -4,7 +4,6 @@ image: meroff/hugo-with-pandoc:academic431
stages:
- build-pdf
- combine
- build-hugo
- review
- publish
......@@ -32,6 +31,7 @@ build-hugo-branches:
extends: .build-prepare
stage: build-hugo
script:
- if [[ -e pdf ]] ; then cp -purv pdf/content/* content/ ; rm -rf pdf ; rm -rf public ; fi
- hugo --baseURL https://deploy.ce.jku.at/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_COMMIT_REF_NAME/
artifacts:
when: always
......@@ -47,6 +47,7 @@ build-hugo-master:
extends: .build-prepare
stage: build-hugo
script:
- if [[ -e pdf ]] ; then cp -purv pdf/content/* content/ ; rm -rf pdf ; rm -rf public ; fi
- hugo --baseURL https://pages.ce.jku.at/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/public/
artifacts:
when: always
......@@ -64,18 +65,6 @@ build-pdf:
artifacts:
paths:
- pdf
only:
variables:
- $GENERATE_PD == "true"
combine:
extends: .build-prepare
stage: combine
script:
- if [[ -e pdf ]] ; then cp -purv pdf/content/* content/ ; rm -rf pdf ; rm -rf public ; fi
artifacts:
paths:
- public
only:
variables:
- $GENERATE_PDF == "true"
......
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