Parcourir la Source

build: Add 'push-gh-pages' target to Makefile

This allows you to automatically push new documentation.
Ole il y a 9 ans
Parent
commit
af90489e4f
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Makefile

+ 5 - 0
Makefile

@@ -39,6 +39,11 @@ docs:
 	mkdocs build --clean
 	doxygen
 
+push-gh-pages: docs
+	git add docs/output
+	git commit -m "docs: Automated update $$(date)"
+	git subtree push --prefix docs/output origin gh-pages
+
 # Tests
 test: $(TEST_OUT)
 	./$(TEST_OUT)