diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 313b5c40b5dd2237adf7c8489c8c67a275dea28a..5c50814e862dacc4b799e2e7a442f50c234bca67 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,15 @@ image: alpine:latest +workflow: + rules: + - if: $CI_COMMIT_BRANCH + pages: stage: deploy tags: - docker script: - - echo 'Nothing to do...' + - cp -r src public/$CI_COMMIT_BRANCH artifacts: paths: - - public - only: - - master + - public/CI_COMMIT_BRANCH diff --git a/public/index.html b/src/index.html similarity index 94% rename from public/index.html rename to src/index.html index 6652c7dd60ad34f6d80148f3c8e6876702d19854..1f9332be74dc3cf3eaf1be01de8751dcb289a48b 100644 --- a/public/index.html +++ b/src/index.html @@ -13,7 +13,7 @@ <a href="https://gitlab.com/pages/">Other Examples</a> </div> - <h1>Hello World!</h1> + <h1>Hello World! Dev Branch</h1> <p> This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator. diff --git a/public/style.css b/src/style.css similarity index 100% rename from public/style.css rename to src/style.css