BililiveRecorder/CI/push_clickonce.ps1
Genteure 3a8070647d 🌚🌝🌚🌝🌚
2018-03-25 12:01:01 +08:00

9 lines
630 B
PowerShell

if (-not (Test-Path env:APPVEYOR)) {
Throw New-Object System.NotSupportedException "Not Running on Appveyor!"
}
git clone --quiet --depth 1 https://github.com/Bililive/soft.danmuji.org.git C:\projects\site
Get-ChildItem -Path .\BililiveRecorder.WPF\bin\Release\app.publish | Copy-Item -Destination C:\projects\site\BililiveRecorder -Recurse -Container
git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ add -A
git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ commit --quiet -m "BililiveRecorder $env:p_version"
git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ push --quiet