diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18d2bd5..106bbff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,18 @@ -image: alpine:latest +# This file is a template, and might need editing before it works on your project. +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/HTML.gitlab-ci.yml +# Full project: https://gitlab.com/pages/plain-html pages: stage: deploy script: - - echo 'Nothing to do...' + - mkdir .public + - cp -r * .public + - mv .public public artifacts: paths: - - public - expire_in: 1 day - only: - - master + - public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH diff --git a/public/index.html b/index.html similarity index 100% rename from public/index.html rename to index.html diff --git a/public/style.css b/style.css similarity index 100% rename from public/style.css rename to style.css