File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,6 @@ main() {
7
7
source .env
8
8
fi
9
9
10
- deploy_directory=${GIT_DEPLOY_DIR:- dist}
11
- deploy_branch=${GIT_DEPLOY_BRANCH:- gh-pages}
12
-
13
- # if no user identity is already set in the current git environment, use this:
14
- default_username=${GIT_DEPLOY_USERNAME:- deploy.sh}
15
- default_email=${GIT_DEPLOY_EMAIL:- }
16
-
17
- # repository to deploy to. must be readable and writable.
18
- repo=${GIT_DEPLOY_REPO:- origin}
19
-
20
- # append commit hash to the end of message by default
21
- append_hash=true
22
-
23
10
# Parse arg flags
24
11
while : ; do
25
12
if [[ $1 = " -v" || $1 = " --verbose" ]]; then
@@ -41,6 +28,20 @@ main() {
41
28
break
42
29
fi
43
30
done
31
+
32
+ # Set default options
33
+ deploy_directory=${GIT_DEPLOY_DIR:- dist}
34
+ deploy_branch=${GIT_DEPLOY_BRANCH:- gh-pages}
35
+
36
+ # if no user identity is already set in the current git environment, use this:
37
+ default_username=${GIT_DEPLOY_USERNAME:- deploy.sh}
38
+ default_email=${GIT_DEPLOY_EMAIL:- }
39
+
40
+ # repository to deploy to. must be readable and writable.
41
+ repo=${GIT_DEPLOY_REPO:- origin}
42
+
43
+ # append commit hash to the end of message by default
44
+ append_hash=true
44
45
45
46
enable_expanded_output
46
47
You can’t perform that action at this time.
0 commit comments