diff --git a/appveyor.yml b/appveyor.yml index fd53b7f..550da67 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -59,9 +59,5 @@ deploy: branch: master on_success: - - ps: .\run-docs.ps1 - - git config --global credential.helper store - - ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):x-oauth-basic@github.com`n" - - git config --global user.email %github_email% - - git config --global user.name "equinox2k" + - ps: .\run-docs.ps1 $env:USERPROFILE %github_access_token% %github_email% equinox2k - bash release-docs.sh diff --git a/run-docs.ps1 b/run-docs.ps1 index d9ba88f..18191e0 100644 --- a/run-docs.ps1 +++ b/run-docs.ps1 @@ -1 +1,11 @@ -Write-Host "Hello World:" \ No newline at end of file +param ( + [Parameter(Mandatory=$true)][string]$user_profile, + [Parameter(Mandatory=$true)][string]$github_access_token, + [Parameter(Mandatory=$true)][string]$github_email, + [Parameter(Mandatory=$true)][string]$github_user +) + +git config --global credential.helper store +Add-Content "$user_profile\.git-credentials" "https://$($github_access_token):x-oauth-basic@github.com`n" +git config --global user.email $github_email +git config --global user.name $github_user