-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
61 lines (54 loc) · 2.99 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
# build variables
os: Visual Studio 2017
skip_tags: true
environment:
keystore-password:
secure: 3/2CEw0mJamPNFXQqYbdQQ== # YourPassword for keystore
AppCenterApiKey:
secure: cgQ14sQzDhZ0jq54rl5KiQMRSok+NpcCAb3NSoknIiRI41L1OA4XqZWQ46ag1RA+
xamarin:
email:
secure: +SUXZSPLHwp39+Yh09d2xxVGsEgHtlSD4NT1Og5h3sg=
password:
secure: Tvdf5rZl6IOCwZbvyj9B2w==
android: true
ios: true
# versioning
version: 0.1.{build}
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-{branch}'
# packages
install:
- ps: Install-Product node stable
- ps: Scripts\InstallMonoGame.ps1
- cmd: npm install -g appcenter-cli
# build
branches:
only:
- master
before_build:
- ps: Scripts\UpdateAndroidManifestVersion.ps1 -androidManifestPath ".\DeveBlockStacker.Android\Properties\AndroidManifest.xml" -version $env:APPVEYOR_BUILD_VERSION -buildNumber $env:APPVEYOR_BUILD_NUMBER
- ps: Scripts\UpdateAppxManifestVersion.ps1 -appxManifestPath ".\DeveBlockStacker.WindowsUWP\Package.appxmanifest" -version $env:APPVEYOR_BUILD_VERSION
- nuget restore
build_script:
- msbuild "/p:Configuration=Release" /p:Platform="x86" /p:AppxBundlePlatforms="x86|x64|ARM" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload "DeveBlockStacker.WindowsUWP\DeveBlockStacker.WindowsUWP.csproj"
- msbuild "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=DevedseCert" "/p:AndroidSigningKeyPass=%keystore-password%" "/p:AndroidSigningKeyStore=DevedseCert.keystore" "/p:AndroidSigningStorePass=%keystore-password%" "DeveBlockStacker.Android\DeveBlockStacker.Android.csproj"
# - msbuild "/p:Configuration=Release" "DeveBlockStacker.WindowsUWP\DeveBlockStacker.WindowsUWP.csproj"
after_build:
- ps: appcenter distribute release -s Production -f "DeveBlockStacker.Android\bin\Android\AnyCPU\Release\deveblockstacker_android.deveblockstacker_android-Signed.apk" -a Devedse/DeveBlockStacker.Android -r "$env:APPVEYOR_REPO_COMMIT_MESSAGE" --token $env:AppCenterApiKey
- ps: appcenter distribute release -g Collaborators -f "DeveBlockStacker.WindowsUWP\bin\WindowsUniversal\x86\Release\Upload\DeveBlockStacker.WindowsUWP_$($env:APPVEYOR_BUILD_VERSION).0\DeveBlockStacker.WindowsUWP_$($env:APPVEYOR_BUILD_VERSION).0_x86_x64_ARM.appxbundle" -a Devedse/DeveBlockStacker.WindowsUWP -r "$env:APPVEYOR_REPO_COMMIT_MESSAGE" --token $env:AppCenterApiKey
# Getting the name of the group for appcenter can be done using https://openapi.appcenter.ms/#/distribute/stores_list then get the "service_connection_id"
artifacts:
- path: DeveBlockStacker.Android\bin\Android\AnyCPU\Release\deveblockstacker_android.deveblockstacker_android-Signed.apk
name: Android_Release
- path: '**\Upload\**\*.appxbundle'
name: UWP_Release
deploy:
- provider: GitHub
auth_token:
secure: do7S++r1rE5E3IZujCoMONsWYJNF7eoRoPyJbxSD851I850OlEq0gsHH/Tji7o00
artifact: Android_Release,UWP_Release