2018-03-24 04:58:56 +08:00
|
|
|
image: Visual Studio 2017
|
|
|
|
platform: Any CPU
|
2018-03-25 04:50:26 +08:00
|
|
|
# skip_non_tags: true
|
|
|
|
|
|
|
|
version: 0.0.0.{build}
|
|
|
|
|
2018-03-24 04:58:56 +08:00
|
|
|
init:
|
|
|
|
- git config --global credential.helper store
|
|
|
|
- ps: 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)"
|
2018-03-25 04:50:26 +08:00
|
|
|
- ps: >-
|
|
|
|
if ($env:APPVEYOR_REPO_TAG -eq "true")
|
|
|
|
{
|
2018-03-25 05:38:56 +08:00
|
|
|
$env:p_version="$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
|
|
|
|
Update-AppveyorBuild -Version "$env:p_version"
|
2018-03-25 04:50:26 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-03-25 05:38:56 +08:00
|
|
|
$env:p_version="0.0.0.$env:APPVEYOR_BUILD_NUMBER"
|
|
|
|
Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.Substring(0, 7))"
|
2018-03-25 04:50:26 +08:00
|
|
|
}
|
2018-03-25 05:47:34 +08:00
|
|
|
- ps: Write-Host $env:p_version
|
2018-03-25 04:50:26 +08:00
|
|
|
|
2018-03-24 04:58:56 +08:00
|
|
|
assembly_info:
|
|
|
|
patch: true
|
|
|
|
file: '**\AssemblyInfo.*'
|
2018-03-25 05:38:56 +08:00
|
|
|
assembly_version: '${p_version}'
|
|
|
|
assembly_file_version: '${p_version}'
|
|
|
|
assembly_informational_version: '${p_version}'
|
2018-03-24 04:58:56 +08:00
|
|
|
dotnet_csproj:
|
|
|
|
patch: true
|
2018-03-25 05:55:02 +08:00
|
|
|
file: '**\*.csproj'
|
2018-03-25 05:38:56 +08:00
|
|
|
version: '${p_version}'
|
|
|
|
package_version: '${p_version}'
|
|
|
|
assembly_version: '${p_version}'
|
|
|
|
file_version: '${p_version}'
|
|
|
|
informational_version: '${p_version}'
|
2018-03-25 04:50:26 +08:00
|
|
|
|
2018-03-25 04:54:14 +08:00
|
|
|
before_build:
|
2018-03-25 05:38:56 +08:00
|
|
|
- nuget restore
|
2018-03-25 05:47:34 +08:00
|
|
|
- dotnet restore
|
2018-03-25 04:54:14 +08:00
|
|
|
|
2018-03-25 04:50:26 +08:00
|
|
|
artifacts:
|
|
|
|
- path: BililiveRecorder.WPF\bin\Debug
|
|
|
|
name: WPFDebug
|
|
|
|
|
2018-03-24 04:58:56 +08:00
|
|
|
environment:
|
|
|
|
github_access_token:
|
|
|
|
secure: 3n2WMbrqWb0nmy2LBmu7w6dJltiHHC4LCoNuIKBh7fKV0xfxCwVGOxbTpunLI2pe
|
|
|
|
build:
|
|
|
|
verbosity: minimal
|
|
|
|
on_success:
|
|
|
|
# clone soft.danmuji.org
|
|
|
|
# copy files
|
|
|
|
# - git commit ...
|
|
|
|
# - git push ...
|
|
|
|
|
|
|
|
# TODO: Github Release
|
2018-03-25 05:47:34 +08:00
|
|
|
|
|
|
|
on_finish:
|
|
|
|
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|