feat: all make branches serve + subpath
This commit is contained in:
parent
a09151180c
commit
c168d91613
@ -1,14 +1,21 @@
|
|||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
PUBLIC_PATH: public/$CI_COMMIT_BRANCH
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
environment: $CI_COMMIT_BRANCH
|
||||||
|
stage: deploy
|
||||||
|
when: manual
|
||||||
script:
|
script:
|
||||||
- mkdir .public
|
- mkdir .public
|
||||||
- cp -r * .public
|
- cp -r * .public
|
||||||
- mv .public public
|
- mv .public/custom_files/gulpfile.js .public/reveal.js/
|
||||||
- cp 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
only:
|
rules:
|
||||||
- public
|
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||||
|
Loading…
Reference in New Issue
Block a user