-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
67 lines (59 loc) · 1.61 KB
/
appveyor.yml
File metadata and controls
67 lines (59 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '{build}'
image: Visual Studio 2022
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
- main
skip_tags: true
skip_branch_with_pr: true
max_jobs: 1
configuration: Release
init:
- cmd: >-
tzutil /s "Russian Standard Time"
git config --global core.autocrlf input
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
version_prefix: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
install:
- ps: >-
[XML]$xml = Get-Content "$env:APPVEYOR_PROJECT_NAME\$env:APPVEYOR_PROJECT_NAME.csproj"
Update-AppveyorBuild -Version "$($xml.Project.PropertyGroup.Version[0]).$env:APPVEYOR_BUILD_NUMBER"
$CommitDateTime = [datetime]::Parse($env:APPVEYOR_REPO_COMMIT_TIMESTAMP)
$env:BuildDate = $CommitDateTime.ToString('yyyy-MM-dd')
$env:AppZip = "$env:APPVEYOR_PROJECT_NAME-v$env:APPVEYOR_BUILD_VERSION.zip"
Write-Host "Building v$env:APPVEYOR_BUILD_VERSION dated $env:BuildDate"
build_script:
- cmd: build.cmd
artifacts:
- path: '*.zip'
name: AppZip
deploy:
- provider: GitHub
tag: v$(APPVEYOR_BUILD_VERSION)
release: $(APPVEYOR_PROJECT_NAME) v$(APPVEYOR_BUILD_VERSION)
description: '* $(APPVEYOR_REPO_COMMIT_MESSAGE)\n\nBuild #$(APPVEYOR_BUILD_NUMBER) by AppVeyor $(BuildDate)'
auth_token:
secure: CtLw0vASSRohSAE/AYwPTxOZBY5jdARbUF3qoZJNzsKl5kApX/G7FBvfUl1qfuhR
artifact: AppZip
force_update: true
on:
branch:
- master
- main
only_commits:
files:
- '*.cs'
- '*.yml'
skip_commits:
files:
- docs\*
- '**\*.md'