1
0
mirror of https://gitlab.com/free_zed/free_zed.gitlab.io.git synced 2024-06-01 22:02:28 +00:00
free_zed.gitlab.io/.gitlab-ci.yml
Freezed 8a9dda332a Add a commit link in footer
Do some change in CSS and HTML indentatior
The commit link is build with 3 new template files :
    - time
    - date
    - commit
Each file is updated during CI, before _pelican_ build HTML files.
2019-01-21 00:40:50 +01:00

26 lines
573 B
YAML

image: python:3.6-alpine
publish:
except:
- master
- devel
script:
- pip install -r requirements.txt
- pelican -s pubconf-devel.py --fatal warnings
- pelican -s pubconf-master.py --fatal warnings
pages:
only:
- master
- devel
script:
- pip install -r requirements.txt
- date --utc +%H:%M > mytheme/templates/time
- date --utc +%d/%m/%Y > mytheme/templates/date
- echo $CI_COMMIT_SHORT_SHA > mytheme/templates/commit
- pelican -s "pubconf-${CI_COMMIT_REF_NAME}.py" --fatal warnings
artifacts:
when: on_success
paths:
- public