diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9b21b47a22a502a2bc230c0ca7582d8d05d28ad..802609c1fee00f5cc342a313d1f5e0218128aa40 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,19 +46,19 @@ build-book: - book/_build/html/ # This job commits the built HTML to the publish-html branch -push-html: - stage: deploy - only: - - publish - before_script: - - apt-get update -y - - apt-get install rsync -y - - git config --global user.name "$GITLAB_USER_NAME" - - git config --global user.email "$GITLAB_USER_EMAIL" - - git fetch origin publish-html - - git checkout publish-html - script: - - rsync -av --delete-after --exclude=".git/" --exclude=".cache/" --exclude="venv/" ./book/_build/html/ . - - git add --all -- ':!.cache/*' - - git commit --allow-empty -m "$CI_COMMIT_MESSAGE" - - git push https://gitlab-ci-token:$ACCESS_TOKEN@gitlab.tudelft.nl/$CI_PROJECT_PATH.git publish-html +# push-html: +# stage: deploy +# only: +# - publish +# before_script: +# - apt-get update -y +# - apt-get install rsync -y +# - git config --global user.name "$GITLAB_USER_NAME" +# - git config --global user.email "$GITLAB_USER_EMAIL" +# - git fetch origin publish-html +# - git checkout publish-html +# script: +# - rsync -av --delete-after --exclude=".git/" --exclude=".cache/" --exclude="venv/" ./book/_build/html/ . +# - git add --all -- ':!.cache/*' +# - git commit --allow-empty -m "$CI_COMMIT_MESSAGE" +# - git push https://gitlab-ci-token:$ACCESS_TOKEN@gitlab.tudelft.nl/$CI_PROJECT_PATH.git publish-html