mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
test CI
This commit is contained in:
parent
065aab3f4b
commit
5d42e45493
|
@ -1,14 +0,0 @@
|
|||
if ($env:BILILIVERECORDER_RELEASE.ToLower() -eq "true")
|
||||
{
|
||||
Import-Module ./CI/FileCryptography.psm1
|
||||
$secure_codesignpasswd = ConvertTo-SecureString "$env:codesignpasswd" -AsPlainText -Force
|
||||
$file = Unprotect-File './CI/rixCloud2Genteure.pfx.AES' -KeyAsPlainText "$env:codesignaes"
|
||||
$ccert = Import-PfxCertificate -FilePath "$($file.FullName)" -CertStoreLocation Cert:\CurrentUser\My -Password $secure_codesignpasswd
|
||||
|
||||
msbuild /t:Publish /verbosity:minimal /p:Configuration=Release /p:CertificateThumbprint="$($ccert.Thumbprint)" /p:ApplicationVersion="$env:p_version" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||
$host.SetShouldExit($LastExitCode)
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Not a new release, skipping msbuild /t:Publish"
|
||||
}
|
|
@ -16,3 +16,4 @@ $body = @{
|
|||
}
|
||||
|
||||
Invoke-RestMethod -Method Post -Headers $headers -Body $body -Uri "https://api.github.com/repos/Bililive/rec.danmuji.org/pulls" -ErrorAction:SilentlyContinue | Out-Null
|
||||
Push-AppveyorArtifact "..\site\Recorder\Setup.exe" -FileName "Setup.exe" -DeploymentName "github"
|
|
@ -1,10 +0,0 @@
|
|||
if ($env:APPVEYOR)
|
||||
{
|
||||
Rename-Item .\BililiveRecorder.WPF\bin\Release\app.publish\setup.exe BililiveRecorder.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 -Force
|
||||
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
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
git tag "v$env:p_version"
|
||||
git push origin dev:master --quiet
|
||||
git push origin "v$env:p_version" --quiet
|
12
appveyor.yml
12
appveyor.yml
|
@ -39,8 +39,6 @@ before_build:
|
|||
build_script:
|
||||
- ps: msbuild /nologo /v:q /p:Configuration="$env:CONFIGURATION" /p:SquirrelBuildTarget="$env:DEPLOY_SITE_GIT\Recorder"
|
||||
|
||||
on_success:
|
||||
- ps: ./CI/appveyor_on_success.ps1
|
||||
|
||||
for:
|
||||
|
||||
|
@ -51,9 +49,15 @@ for:
|
|||
configuration: Release
|
||||
artifacts:
|
||||
before_deploy:
|
||||
- ps: ./CI/deploy.ps1
|
||||
- ps: ./CI/appveyor_deploy.ps1
|
||||
deploy:
|
||||
#provider:
|
||||
provider: GitHub
|
||||
release: v$(APPVEYOR_BUILD_VERSION)
|
||||
description: '# Fill out this before publish'
|
||||
auth_token:
|
||||
secure: 3n2WMbrqWb0nmy2LBmu7w6dJltiHHC4LCoNuIKBh7fKV0xfxCwVGOxbTpunLI2pe
|
||||
artifact: github
|
||||
draft: true
|
||||
|
||||
-
|
||||
configuration: Debug
|
||||
|
|
Loading…
Reference in New Issue
Block a user