Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
65c4ba7f
Unverified
Commit
65c4ba7f
authored
Mar 22, 2021
by
Michael Müller
Committed by
GitHub
Mar 22, 2021
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
Changes
1
Pipelines
4
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
65c4ba7f
...
...
@@ -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/ ./*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment