-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
appveyor.yml
90 lines (69 loc) · 2.03 KB
/
appveyor.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: 6.0.2.{build}
os: Visual Studio 2022
configuration: Release
branches:
only:
- dev-v6
- main-v6
- /v*/
environment:
# Version Suffix
version_suffix: alpha
install:
- ps: .\build\appveyor-semver.ps1
- ps: .\build\check-release-version.ps1
- ps: Update-AppveyorBuild -Version $Env:semver
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '$(semver)'
assembly_version: '$(appveyor_file_version)'
file_version: '$(appveyor_file_version)'
informational_version: '$(semver)'
before_build:
- pwsh: |
dotnet tool install --global GitVersion.Tool --version 6.*
dotnet-gitversion $env:APPVEYOR_BUILD_FOLDER /l console /nofetch /b $env:APPVEYOR_REPO_BRANCH
build_script:
- cmd: >-
cd build
npm i jsonfile
npm i semver
node patch-umbraco-package.js
echo "Version patched in umbraco-package.json"
cd..
- cmd: >-
cd src
cd Slimsy
dotnet build
cd..
artifacts:
- path: .\src\Slimsy\bin\$(CONFIGURATION)\*.nupkg
deploy:
# Umbraco MyGet community feed
- provider: NuGet
server: https://www.myget.org/F/umbraco-packages/api/v2/package
symbol_server: https://www.myget.org/F/umbraco-packages/symbols/api/v2/package
api_key:
secure: SASQGWG/4zNns7bwSSsJ5RPvKcKfJsBeEPuw69wsVPA3PO739QmzVtc5VwQwgvbr
artifact: /.*\.nupkg/
on:
branch: dev-v6
# Umbraco MyGet community feed
- provider: NuGet
server: https://www.myget.org/F/umbraco-packages/api/v2/package
symbol_server: https://www.myget.org/F/umbraco-packages/symbols/api/v2/package
api_key:
secure: SASQGWG/4zNns7bwSSsJ5RPvKcKfJsBeEPuw69wsVPA3PO739QmzVtc5VwQwgvbr
artifact: /.*\.nupkg/
on:
branch: dev-v5
# Umbraco MyGet community feed
- provider: NuGet
server: https://www.myget.org/F/umbraco-packages/api/v2/package
symbol_server: https://www.myget.org/F/umbraco-packages/symbols/api/v2/package
api_key:
secure: SASQGWG/4zNns7bwSSsJ5RPvKcKfJsBeEPuw69wsVPA3PO739QmzVtc5VwQwgvbr
artifact: /.*\.nupkg/
on:
branch: dev-v4