Update .gitlab-ci.yml file

This commit is contained in:
Denys Konovalov 2022-03-20 16:40:35 +00:00
parent f42d12baad
commit dbe8900fb2

View File

@ -12,7 +12,7 @@ deploy_website:
- git config --global user.email "denys.konovalov@protonmail.com" - git config --global user.email "denys.konovalov@protonmail.com"
script: script:
- hugo --gc --minify --cleanDestinationDir - hugo --gc --minify --cleanDestinationDir
- git clone --depth=1 --single-branch --branch "${INPUT_BRANCH}" "https://x-access-token:$TOKEN@gitlab.cantorgymnasium.de/cantortechnik/website-build.git" /tmp/gh-pages - git clone --depth=1 --single-branch --branch main "https://x-access-token:$TOKEN@gitlab.cantorgymnasium.de/cantortechnik/website-build.git" /tmp/gh-pages
- rm -rf /tmp/gh-pages/* - rm -rf /tmp/gh-pages/*
- export OLD_PATH=$PWD - export OLD_PATH=$PWD
- cp public/* /tmp/gh-pages - cp public/* /tmp/gh-pages