forked from ClassicUO/ClassicUO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
74 lines (64 loc) · 2.1 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
version: 0.1.7.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
image: Visual Studio 2019
configuration: Release
platform: x64
clone_folder: c:\projects\classicuo
clone_script:
- cmd: >-
git --version
git clone -q --branch %APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER% && cd %APPVEYOR_BUILD_FOLDER% && git checkout -qf %APPVEYOR_REPO_COMMIT% && git submodule update --init --recursive
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
version_prefix: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}-dev'
environment:
DEV_BUILD: true
build_script:
- cmd: >-
nuget restore
dotnet build "%APPVEYOR_BUILD_FOLDER%" -c release /p:DefineConstants="DEV_BUILD" -p:IS_DEV_BUILD=true
xcopy "%APPVEYOR_BUILD_FOLDER%\tools\monokickstart\*.*" "%APPVEYOR_BUILD_FOLDER%\bin\Release" /Y
7z a ClassicUO-dev-preview-release.zip "%APPVEYOR_BUILD_FOLDER%\bin\Release\*"
dotnet run --project "%APPVEYOR_BUILD_FOLDER%\tools\ManifestCreator\ManifestCreator.csproj" "%APPVEYOR_BUILD_FOLDER%\bin\Release" "dev-preview" "ClassicUO-dev-preview-release.zip"
artifacts:
- path: ClassicUO-dev-preview-release.zip
name: ClassicUO
- path: manifest.xml
name: manifest
deploy:
- provider: GitHub
tag: ClassicUO-dev-preview
release: ClassicUO-dev-preview
description: 'Appveyor autodeploy.\nThis build may not be safe: use it at your own risk.\nIt does not contain Razor.'
auth_token:
secure: sFMPr0POE5r5CFP5XbTD0e5pZVRO/12A3LgkqKVDD2uB2Webo6gstCTm63KzcbaW
artifact: ClassicUO-dev-preview-release.zip
draft: false
prerelease: true
force_update: true
on:
branch: dev
- provider: FTP
host: ftp.classicuo.eu
protocol: ftp
username:
secure: JaSH/LFfqcrUBZ5USwkYozDFFZUmyRZJyxsB/LSNOlI=
password:
secure: yGvEu0Hl4Ep7aZZq5+dP/A==
folder: /www.classicuo.eu/dev/deploy
artifact: ClassicUO-dev-preview-release.zip, manifest
active_mode: false
beta: false
debug: false
on:
branch: dev