Presentations-revealjs/.gitlab-ci.yml

22 lines
600 B
YAML

variables:
GIT_SUBMODULE_STRATEGY: recursive
PUBLIC_PATH: public/$CI_COMMIT_BRANCH
pages:
environment: $CI_COMMIT_BRANCH
stage: deploy
when: manual
script:
- mkdir .public
- cp -r * .public
- mv .public/custom_files/gulpfile.js .public/reveal.js/
- '[ -d "public/$CI_COMMIT_BRANCH" ] && { rm -rf public/$CI_COMMIT_BRANCH/*; mv .public/* public/$CI_COMMIT_BRANCH/; } || { mkdir -p public/$CI_COMMIT_BRANCH; mv .public/* public/$CI_COMMIT_BRANCH/; }'
cache:
paths:
- public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH =~ /^make/