2023-02-27 11:25:08 +01:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2023-02-27 22:08:46 +01:00
|
|
|
PUBLIC_PATH: public/$CI_COMMIT_BRANCH
|
2023-02-27 11:25:08 +01:00
|
|
|
|
|
|
|
pages:
|
2023-02-27 22:08:46 +01:00
|
|
|
environment: $CI_COMMIT_BRANCH
|
|
|
|
stage: deploy
|
|
|
|
when: manual
|
2023-02-27 11:25:08 +01:00
|
|
|
script:
|
|
|
|
- mkdir .public
|
|
|
|
- cp -r * .public
|
2023-02-27 22:08:46 +01:00
|
|
|
- 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
|
2023-02-27 11:25:08 +01:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2023-02-27 22:08:46 +01:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH =~ /^make/
|