소스 검색

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)