diff --git a/CI/appveyor_install.ps1 b/CI/appveyor_install.ps1 index 369887c..c1f0067 100644 --- a/CI/appveyor_install.ps1 +++ b/CI/appveyor_install.ps1 @@ -10,6 +10,7 @@ $commit_message_version_regex="^Release: (\d+\.\d+\.\d+)$" if ($env:APPVEYOR_REPO_BRANCH -eq "dev" -and $env:APPVEYOR_REPO_COMMIT_MESSAGE -cmatch $commit_message_version_regex) { + git checkout dev $env:BILILIVERECORDER_RELEASE=$true $env:p_version="$($Matches[1]).0" Update-AppveyorBuild -Version "$env:p_version" diff --git a/CI/push_clickonce.ps1 b/CI/push_clickonce.ps1 index 619d0fc..229c0dd 100644 --- a/CI/push_clickonce.ps1 +++ b/CI/push_clickonce.ps1 @@ -1,10 +1,10 @@ -if ($env:APPVEYOR) { - - Rename-Item .\BililiveRecorder.WPF\bin\Release\app.publish\setup.exe B站录播姬安装.exe +if ($env:APPVEYOR) +{ + Rename-Item .\BililiveRecorder.WPF\bin\Release\app.publish\setup.exe Bվ¼²¥¼§°²×°.exe 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 + git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ push --quiet } diff --git a/CI/push_master.ps1 b/CI/push_master.ps1 index 8ef8fbf..cf547dc 100644 --- a/CI/push_master.ps1 +++ b/CI/push_master.ps1 @@ -1,3 +1,3 @@ -git push origin master git tag "v$env:p_version" -git push origin "v$env:p_version" +git push origin master --quiet +git push origin "v$env:p_version" --quiet