File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 exit 0
1616}
1717
18- Write-Host " Switching to a temp branch"
19- git checkout - b temp/ publish-docs
20-
2118Write-Host " Publishing the docs site to $BaseDir "
2219
2320Write-Host " Clearing $BaseDir ..."
@@ -39,15 +36,18 @@ if ($Env:APPVEYOR_REPO_BRANCH -eq "production") {
3936if ($Env: APPVEYOR -eq " True" ) {
4037 Write-Host " Setting up git to publish site"
4138 git config -- global user.name " AppVeyor (on behalf of Craig Fowler)"
42- git config -- global user.email " craig+appveyor@csf-dev.com"
39+ git config -- global user.email " craig+appveyor@csf-dev.com"
4340 git config -- global credential.helper store
4441 Set-Content - Path " $HOME \.git-credentials" - Value " https://$ ( $Env: GITHUB_SECRET_KEY ) :x-oauth-basic@github.com`n " - NoNewline
4542}
4643
47- # Because of autocrlf, the git add command could report warnings which cause the script to
44+ # The git commands below could report warnings which cause the script to
4845# stop unless I change the error preference first
4946$ErrorActionPreference = " silentlycontinue"
5047
48+ Write-Host " Switching to a temp branch"
49+ git checkout - b temp/ publish-docs
50+
5151Write-Host " Adding content"
5252git add -- all docs/
5353
You can’t perform that action at this time.
0 commit comments