feat: all make branches serve + subpath

This commit is contained in:
Alexandre Simao 2023-02-27 22:08:46 +01:00
parent 7363ea6b50
commit 86f78a7fff
No known key found for this signature in database
GPG Key ID: DFD784DB2A6F7A07

View File

@ -1,14 +1,21 @@
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 public
- cp public/custom_files/gulpfile.js public/reveal.js/
- 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
only:
- public
rules:
- if: $CI_COMMIT_BRANCH =~ /^make/