Skip to content

Commit e0134b3

Browse files
committed
add deploy script
1 parent 1d7762d commit e0134b3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

deploy

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
REV=`git describe --always`
3+
rm -rf _public
4+
git clone $(git remote get-url origin) --depth 1 -b gh-pages _public
5+
cd _public
6+
git rm -r *
7+
cp -R ../web/static/* ./
8+
git add *
9+
git commit -m "regen for $REV"
10+
git push
11+
cd ..
12+
rm -rf _public

0 commit comments

Comments
 (0)