diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f1699ae38a689ba129b018f3d0d329ee34a3d25..efa33f07ee784c1a6bbc33dca99ee4ca3c283e78 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,10 @@ -# This file is a template, and might need editing before it works on your project. -# Full project: https://gitlab.com/pages/plain-html - -image: busybox +image: "python:3" pages: stage: deploy script: - - echo "The site will be deployed to $CI_PAGES_URL" + - python3 -m pip install -r requirements.txt + - python3 build_site.py artifacts: paths: - public diff --git a/build_site.py b/build_site.py new file mode 100644 index 0000000000000000000000000000000000000000..88d9cf3c74e5910a91b97af2cf2232ec11dfc1c3 --- /dev/null +++ b/build_site.py @@ -0,0 +1,2 @@ +import shutil +shutil.copyfile("templates/index.html", "public/index.html") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..46da9948b208fb634f051c48c40daa498fb7b2b4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Jinja2~=3.1.4 \ No newline at end of file diff --git a/public/index.html b/templates/index.html similarity index 100% rename from public/index.html rename to templates/index.html