Skip to content

Commit 1d34b83

Browse files
committed
chore: script for deploying gh-pages
1 parent 495bf93 commit 1d34b83

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ Thumbs.db
4444

4545
# output files
4646
demo/dist
47-
bundles
47+
bundles
48+
49+
gh-pages/

scripts/deploy-gh-pages.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
npm run compile
2+
3+
git clone -b gh-pages --single-branch [email protected]:yhnavein/ng2-semantic-ui.git gh-pages
4+
5+
cd gh-pages
6+
7+
rm -rf assets/
8+
rm *
9+
10+
cp -r ../demo/dist/* .
11+
12+
# Stage all files
13+
git add -A .
14+
15+
git commit -a -m "gh-pages update"
16+
17+
git push
18+
19+
cd ../
20+
21+
rm -rf gh-pages/

0 commit comments

Comments
 (0)