mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 19:57:27 +08:00
19 lines
966 B
PowerShell
19 lines
966 B
PowerShell
Write-Host "Current build configuration is $env:CONFIGURATION"
|
|
|
|
if ($env:APPVEYOR -and (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) -and $env:CONFIGURATION -eq "Release") {
|
|
git config --global credential.helper store
|
|
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):x-oauth-basic@github.com`n"
|
|
git config --global user.email "appveyor@genteure.com"
|
|
git config --global user.name "Appveyor(Genteure)"
|
|
git config --global core.autocrlf false
|
|
|
|
Update-AppveyorBuild -Version "$(Get-Content VERSION -Raw)"
|
|
|
|
$env:DEPLOY_SITE_GIT="C:\projects\site"
|
|
git clone --quiet --depth 1 "https://github.com/Bililive/soft.danmuji.org.git" $env:DEPLOY_SITE_GIT
|
|
$env:DEPLOY_SITE_BRANCH="rec$env:APPVEYOR_BUILD_VERSION"
|
|
git --git-dir="$env:DEPLOY_SITE_GIT\.git\" --work-tree="$env:DEPLOY_SITE_GIT" checkout --quiet -b $env:DEPLOY_SITE_BRANCH
|
|
}
|
|
|
|
Write-Host "Current build version is $env:APPVEYOR_BUILD_VERSION"
|