diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..02711ec1ff8ad8bf44c593d78ff2f975a4343da5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +# This file is a template, and might need editing before it works on your project. +# Full project: https://gitlab.com/pages/plain-html +variables: + EXPORT_DIR: "/var/www/html/pages" + +pages-master: + stage: deploy + script: + - mkdir "$EXPORT_DIR/$CI_PROJECT_NAME" + - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME" + tags: + - production + artifacts: + paths: + - public + expire_in: 1 day + + only: + - master