This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ Task Build -depends Restore-Packages{ | |
#publish API documentation changes for GitHub pages under master\docs directory | ||
Task Document -depends Build { | ||
|
||
if($Branch -eq "master") | ||
if($Branch -eq "develop") | ||
{ | ||
|
||
#use docfx to generate API documentation from source metadata | ||
|
@@ -91,7 +91,7 @@ Task Document -depends Build { | |
New-Item -ItemType Directory -Force -Path $TEMP_REPO_DIR | ||
|
||
#clone | ||
git clone https://github.com/$GitHubUserName/$GitHubProjectName.git --branch master $TEMP_REPO_DIR | ||
git clone https://github.com/$GitHubUserName/$GitHubProjectName.git --branch develop $TEMP_REPO_DIR | ||
|
||
If(test-path "$TEMP_REPO_DIR\docs") | ||
{ | ||
|
@@ -105,14 +105,14 @@ Task Document -depends Build { | |
#copy docs to clone directory\docs | ||
Copy-Item -Path "$RepoRoot\docs\*" -Destination "$TEMP_REPO_DIR\docs" -Recurse -Force | ||
|
||
#push changes to master | ||
#push changes to develop | ||
git config --global credential.helper store | ||
Add-Content "$HOME\.git-credentials" "https://$($env:github_access_token):[email protected]`n" | ||
git config --global user.email $env:github_email | ||
git config --global user.name "buildbot171" | ||
git add . -A | ||
git commit -m "API documentation update by build server" | ||
git push origin master | ||
git push origin develop | ||
|
||
#move cd back to current location | ||
cd $Here | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.