Commit 7354dd27 authored by mercury233's avatar mercury233

test appveyor

parent 1396da38
......@@ -23,17 +23,17 @@ for:
after_build:
- ps: |
if(-not $env:appveyor_pull_request_number) {
git fetch --depth 1 origin dump:dump
git checkout dump
Copy-Item -Path .\dumps\* -Destination .\locales\ -Recurse -Force
git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
git commit -a -m $env:APPVEYOR_REPO_COMMIT_MESSAGE
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git push origin dump
}
if(-not $env:appveyor_pull_request_number) {
git fetch --depth 1 origin dump:dump
git checkout dump
Copy-Item -Path .\dumps\* -Destination .\locales\ -Recurse -Force
git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
git commit -a -m $env:APPVEYOR_REPO_COMMIT_MESSAGE
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git push origin dump
}
cache:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment