aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-13 11:08:07 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-13 11:21:10 +0800
commite7f2e58347fd6818e40504a31c924490a681b19d (patch)
tree2b36be486927795f0b03f725d131182fdb2c9a48 /scripts
parent2e6cf32372757b5622197155590b6c939181da52 (diff)
chore: add scripts for gh-pages
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gh-pages.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/gh-pages.sh b/scripts/gh-pages.sh
new file mode 100755
index 0000000..e44bab4
--- /dev/null
+++ b/scripts/gh-pages.sh
@@ -0,0 +1,9 @@
1#!/bin/bash
2
3git checkout -- .gitignore index.html && \
4npm run build && npm run docs && \
5git branch --force gh-pages HEAD && \
6git checkout gh-pages && \
7git add --all && git commit -m gh-pages && \
8git push -f &&
9git checkout HEAD^