Skip to content

Commit 3575cc4

Browse files
committed
Only allow pushToWebsite on AppVeyor
[Skip CI]
1 parent 3634485 commit 3575cc4

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

pushToWebsite.ps1

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
if ($env:APPVEYOR) {
22
$localFolder = "$env:APPVEYOR_BUILD_FOLDER"
3-
} else {
4-
$localFolder = "."
5-
}
63

7-
git clone https://github.com/robotdotnet/robotdotnet.github.io.git origin_site --depth=1
4+
git clone https://github.com/robotdotnet/robotdotnet.github.io.git origin_site --depth=1
85

9-
if ($env:APPVEYOR)
10-
{
11-
git config --global credential.helper store
12-
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
13-
git config --global user.email $env:op_build_user_email
14-
git config --global user.name $env:op_build_user
15-
}
6+
if ($env:APPVEYOR)
7+
{
8+
git config --global credential.helper store
9+
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
10+
git config --global user.email $env:op_build_user_email
11+
git config --global user.name $env:op_build_user
12+
}
1613

17-
Copy-Item origin_site/.git _site -recurse
18-
CD _site
19-
git add -A 2>&1
20-
git commit -m "CI Website Updates"
21-
git push origin master
14+
Copy-Item origin_site/.git _site -recurse
15+
CD _site
16+
git add -A 2>&1
17+
git commit -m "CI Website Updates"
18+
git push origin master
19+
20+
}

0 commit comments

Comments
 (0)