From daaeb53c1b18f167fc24b592f90ef59d7779e3cd Mon Sep 17 00:00:00 2001 From: narimiran Date: Tue, 19 Mar 2024 16:42:17 +0100 Subject: [PATCH] fix makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13083e8d..5ca94b9a 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ publish-guide: # if [[ "$${CURRENT_BRANCH}" != "master" ]]; then \ # echo -e "\nWarning: you're publishing the books from the 'master' branch!\n"; \ # fi + CURRENT_COMMIT="$$(git rev-parse --short HEAD)" && \ cd nimble-guide && \ mkdocs build && \ cd .. && \ @@ -10,7 +11,7 @@ publish-guide: cp -a nimble-guide/site/* tmp-book/ && \ cd tmp-book && \ git add . && { \ - git commit -m "make publish-guide $$(git rev-parse --short HEAD)" && \ + git commit -m "make publish-guide $${CURRENT_COMMIT}" && \ git push origin gh-pages || true; } && \ cd .. && \ git worktree remove -f tmp-book && \