Update: powershell
This commit is contained in:
Родитель
84fde4bab7
Коммит
de9a7359ea
|
@ -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
|
||||
|
|
12
run-docs.ps1
12
run-docs.ps1
|
@ -1 +1,11 @@
|
|||
Write-Host "Hello World:"
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче