From 58c2d2b289669a9f2d0737c0473f1228d3199456 Mon Sep 17 00:00:00 2001 From: nguyed99 <nguyed99@zedat.fu-berlin.de> Date: Mon, 29 Jan 2024 22:48:40 +0100 Subject: [PATCH] Update CI to deploy webpage --- .gitlab-ci.yml | 12 +++++++----- {website => public}/index.html | 0 {website => public}/site.css | 0 {website => public}/threebody.py | 0 4 files changed, 7 insertions(+), 5 deletions(-) rename {website => public}/index.html (100%) rename {website => public}/site.css (100%) rename {website => public}/threebody.py (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc0df3b..eea0c22 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 -- GitLab