Skip to content
Snippets Groups Projects
Unverified Commit 073b0075 authored by Carl Delsey's avatar Carl Delsey Committed by GitHub
Browse files

Fix docs_publish error if nothing to commit. (#1418)

parent c12dffb6
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,10 @@ publish:
rm -fr $(PUBLISHDIR)/*
cp -r $(BUILDDIR)/html/* $(PUBLISHDIR)
cp scripts/.nojekyll $(PUBLISHDIR)/.nojekyll
cd $(PUBLISHDIR) && git add -A && git commit -s -m "[skip ci] publish $(RELEASE)" && git push origin
cd $(PUBLISHDIR) && \
git add -A && \
git diff-index --quiet HEAD || \ #if no changes, don't commit.
(git commit -s -m "[skip ci] publish $(RELEASE)" && git push origin)
# Catch-all target: route all unknown targets to Sphinx using the new
......
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