@@ -64,7 +64,7 @@ Task Build -depends Restore-Packages{
64
64
# publish API documentation changes for GitHub pages under master\docs directory
65
65
Task Document - depends Build {
66
66
67
- if ($Branch -eq " master " )
67
+ if ($Branch -eq " develop " )
68
68
{
69
69
70
70
# use docfx to generate API documentation from source metadata
@@ -91,7 +91,7 @@ Task Document -depends Build {
91
91
New-Item - ItemType Directory - Force - Path $TEMP_REPO_DIR
92
92
93
93
# clone
94
- git clone https:// github.com / $GitHubUserName / $GitHubProjectName.git -- branch master $TEMP_REPO_DIR
94
+ git clone https:// github.com / $GitHubUserName / $GitHubProjectName.git -- branch develop $TEMP_REPO_DIR
95
95
96
96
If (test-path " $TEMP_REPO_DIR \docs" )
97
97
{
@@ -105,14 +105,14 @@ Task Document -depends Build {
105
105
# copy docs to clone directory\docs
106
106
Copy-Item - Path " $RepoRoot \docs\*" - Destination " $TEMP_REPO_DIR \docs" - Recurse - Force
107
107
108
- # push changes to master
108
+ # push changes to develop
109
109
git config -- global credential.helper store
110
110
Add-Content " $HOME \.git-credentials" " https://$ ( $env: github_access_token ) :[email protected] `n "
111
111
git config -- global user.email $env: github_email
112
112
git config -- global user.name " buildbot171"
113
113
git add . - A
114
114
git commit - m " API documentation update by build server"
115
- git push origin master
115
+ git push origin develop
116
116
117
117
# move cd back to current location
118
118
cd $Here
0 commit comments