Przeglądaj źródła

book: Always overwrite history to reduce repo size.

parazyd 3 lat temu
rodzic
commit
310a28f53a
3 zmienionych plików z 5 dodań i 1 usunięć
  1. 1 0
      .github/workflows/book.yml
  2. 1 1
      doc/Makefile
  3. 3 0
      doc/ghp_push.py

+ 1 - 0
.github/workflows/book.yml

@@ -64,3 +64,4 @@ jobs:
               with:
                 github_token: ${{ secrets.GITHUB_TOKEN }}
                 branch: gh-pages
+                force: true

+ 1 - 1
doc/Makefile

@@ -30,6 +30,6 @@ clean:
 	rm -rf book
 
 github: all
-	ghp-import -m "Generate mdbook" -b gh-pages book/
+	./ghp_push.py
 
 .PHONY: $(JSONRPC) all clean github

+ 3 - 0
doc/ghp_push.py

@@ -0,0 +1,3 @@
+#!/usr/bin/env python3
+from ghp_import import ghp_import
+ghp_import("book", branch="gh-pages", no_history=True, mesg="Generate mdbook")