-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·43 lines (37 loc) · 805 Bytes
/
run
File metadata and controls
executable file
·43 lines (37 loc) · 805 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
40
41
42
43
#!/usr/bin/env bash
postcommit(){
local TAG_LAST="$(git describe --abbrev=0 --tags)"
git push -u origin master
git push -u origin ${TAG_LAST}
npm publish
}
preupdate(){
grunt dist
git add -A
git commit -m "pre-tag build"
git_current_branch(){
branch_name=$(git symbolic-ref -q HEAD)
branch_name=${branch_name##refs/heads/}
branch_name=${branch_name:-HEAD}
echo "${branch_name}"
}
git push -u origin "$(git_current_branch)"
}
#
#ghpages(){
#
# rm -rf gh-pages
#
# docgen generate
# grunt copy:docdemo
#
# cd gh-pages
# git init
# git checkout -b gh-pages
# git remote add origin https://github.com/robinradic/laraval
# git add -A
# git commit -m "new"
# git push -u origin gh-pages --force
#
#}
$*