Skip to content
Snippets Groups Projects
Commit 71f9ca2c authored by Rok Štular's avatar Rok Štular
Browse files

Merge branch 'pipeline-fix' into 'main'

ci(deployment): Remove unneeded stage

See merge request !25
parents 72145f2a 01a72e8c
No related branches found
No related tags found
3 merge requests!26Publish latest book,!25ci(deployment): Remove unneeded stage,!18Amagherini assignment1
Pipeline #204894 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment