diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc0df3ba339a9a5d72d0d598515a48606ffef792..eea0c22c1f2e2732ca380906e328c0b4823e0ecf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,12 +30,14 @@ test-tasks: - poetry run pytest tasks/tests/ pages: - stage: build-page + stage: deploy script: - - mkdir .public - - cp -r website/* .public + - echo 'Nothing to do but build a website...' artifacts: paths: - - public + - public + expire_in: 1 day only: - - main \ No newline at end of file + - main + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH diff --git a/website/index.html b/public/index.html similarity index 100% rename from website/index.html rename to public/index.html diff --git a/website/site.css b/public/site.css similarity index 100% rename from website/site.css rename to public/site.css diff --git a/website/threebody.py b/public/threebody.py similarity index 100% rename from website/threebody.py rename to public/threebody.py