Преглед изворни кода

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

This allows you to automatically push new documentation.
Ole пре 9 година
родитељ
комит
af90489e4f
1 измењених фајлова са 5 додато и 0 уклоњено
  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)