File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -eux
4
4
5
- FOLDER=current
6
- SUBFOLDER=${1:- }
7
-
8
5
# stash everything that isn't in docs, store result in STASH_RESULT
9
- STASH_RESULT=$( git stash push -- " :(exclude)docs" )
6
+ STASH_RESULT=$( git stash -- " :(exclude)docs" )
10
7
# get branch name
11
8
CURRENT_BRANCH=$( git rev-parse --abbrev-ref HEAD)
12
9
REVISION_HASH=$( git rev-parse HEAD)
13
10
11
+ mv docs _docs
14
12
git checkout gh-pages
15
- if [[ -z " $SUBFOLDER " ]]; then
16
- # copy contents of docs to docs/current replacing the ones that are already there
17
- rm -rf " $FOLDER "
18
- mv docs/ " $FOLDER " /
19
- # commit
20
- git add --all " $FOLDER "
21
- else
22
- # copy contents of subfolder of docs to docs/current replacing the ones that are already there
23
- rm -rf " $FOLDER " /" $SUBFOLDER "
24
- mv docs/" $SUBFOLDER " / " $FOLDER " /" $SUBFOLDER "
25
- # commit
26
- git add --all " $FOLDER " /" $SUBFOLDER "
27
- fi
13
+ # copy contents of docs to docs/current replacing the ones that are already there
14
+ rm -rf docs
15
+ mv _docs/ docs/
16
+ # commit
17
+ git add --all docs
28
18
29
19
git status
30
20
git commit -m " Documentation for https://github.com/adam-fowler/mqtt-nio/tree/$REVISION_HASH "
You can’t perform that action at this time.
0 commit comments