forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgh-pages.sh
More file actions
executable file
·39 lines (26 loc) · 727 Bytes
/
gh-pages.sh
File metadata and controls
executable file
·39 lines (26 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'#!/bin/bash'
echo 'checkout master'
git checkout master
echo 'pull origin master'
git pull origin master
echo '>> rm -rf node_modules'
rm -rf node_modules
echo '>> npm install'
npm install
echo '>> git checkout gh-pages'
git checkout gh-pages
echo '>> git merge --no-edit --no-ff origin/master'
git merge --no-edit --no-ff origin/master
echo '>> npm run build'
npm run build
echo '>> git add -A'
git add -A
echo '>> git commit -m "Update from master at $(git rev-parse --short master)"'
git commit -m "Update from master at $(git rev-parse --short master)"
echo '>> npm test'
npm test
echo '>> git push origin gh-pages'
git push origin gh-pages
echo '>> git checkout -'
git checkout -
echo 'deployed to gh-pages'