Skip to content

Commit f4faca3

Browse files
committed
Second attempt to fix publishing script
1 parent 2cb31d0 commit f4faca3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/appveyor-publish-docs-site.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ else {
1515
exit 0
1616
}
1717

18-
Write-Host "Switching to a temp branch"
19-
git checkout -b temp/publish-docs
20-
2118
Write-Host "Publishing the docs site to $BaseDir"
2219

2320
Write-Host "Clearing $BaseDir ..."
@@ -39,15 +36,18 @@ if ($Env:APPVEYOR_REPO_BRANCH -eq "production") {
3936
if($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+
5151
Write-Host "Adding content"
5252
git add --all docs/
5353

0 commit comments

Comments
 (0)