-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (21 loc) · 851 Bytes
/
build.sh
File metadata and controls
executable file
·28 lines (21 loc) · 851 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
#!/bin/bash
# Syncs master with gh-pages and deploys to local stage
# Tags are automatically pushed to github!!!
git fetch origin
git reset --hard origin/master
npm install
npm run build
git commit -a -m 'lol-temp'
git checkout --orphan stage || git checkout -f stage
# I like these files, keep'em
git checkout master -- \
index.html \
build/dist.js \
node_modules/bootstrap/dist/css/bootstrap.css \
node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.eot \
node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.svg \
node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf \
node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.woff \
node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
git commit -a -m $(git show --oneline master | head -1 | head -c 4)
git push origin stage