Unverified Commit 65c4ba7f authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix publish docs (#742)

* `git commit` must always succeed

* Add comment
parent 56c6b2a6
Pipeline #130458 passed with stages
in 55 minutes and 53 seconds
......@@ -327,7 +327,12 @@ publish-docs:
# Upload files
- git add --all --force
- git status
- git commit -m "Updated docs for ${CI_COMMIT_REF_NAME} and pushed to gh-pages"
# `git commit` has an exit code of > 0 if there is nothing to commit.
# This unfortunately causes GitLab to exit immediately and mark this
# job as failed subsequently.
# We don't want to mark the entire job as failed if there's nothing to
# publish though, hence the `|| true`.
- git commit -m "Updated docs for ${CI_COMMIT_REF_NAME} and pushed to gh-pages" || true
- git push origin gh-pages --force
after_script:
- rm -rf .git/ ./*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment