forked from NexusForever/NexusForever
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 1.85 KB
/
.travis.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
language: csharp
mono: none
dotnet: 3.1.100
os: linux
dist: xenial
script:
- dotnet build ./Source/NexusForever.AuthServer
- dotnet build ./Source/NexusForever.StsServer
- dotnet build ./Source/NexusForever.WorldServer
before_deploy:
- export TRAVIS_TAG="Travis-"$(git log --format=%H -1)
- git tag $TRAVIS_TAG
- baseDir=$(pwd)
- dotnet publish -c Release -r win-x64 $baseDir/Source/NexusForever.AuthServer --self-contained=false
- cd $baseDir/Source/NexusForever.AuthServer/bin/Release/netcoreapp*.*/win-x64/publish/
- zip -9 AuthServer *
- dotnet publish -c Release -r win-x64 $baseDir/Source/NexusForever.StsServer --self-contained=false
- cd $baseDir/Source/NexusForever.StsServer/bin/Release/netcoreapp*.*/win-x64/publish/
- zip -9 StsServer *
- dotnet publish -c Release -r win-x64 $baseDir/Source/NexusForever.WorldServer --self-contained=false
- cd $baseDir/Source/NexusForever.WorldServer/bin/Release/netcoreapp*.*/win-x64/publish/
- zip -9 WorldServer *
- cd $baseDir
deploy:
provider: releases
api_key:
secure: xCyivUEGRr0FbdJlJ0uwt2V6Eg25p7bMTpstzd1HvHEOjzz0bj2xMfhUorHs5RAF1XFe1x9HQPMCUGVfzr6WlGH/QfzNJpmc0BKegUX32NDfGEyFSyS32Jh97mrolzLqoO3ry4bmAyIo01Wje++IL1r+W9kGLRqOtcXz0GVocWM56kWJ0QV6r6KxbaZKoxu/7GKPKBPNdiEXqO/8tvw2t3xM1qEy69QlJGjYmEOutg/GPYB1nq14UbqFR5rvMqCdRd8dJiIrZYx44ypXW08assQMPDaHjXKZh62uQ4kEvm2jtKMGkWURdZ9tuk4tBEoHyqpjzpXQG4zN2zzjdm2ckmDMD6O/ZlkdEKi6lY3VYdJQv/mA0DjfwkWfWUa+5TX6B4ayirraLK9s37GFHYkcroh+y2fX6jUGWjxTst3G69hHiaPtTCwnU01yoEyeaj+ZoBoLw/Ixf40pUuzsGoXTWdVgQjlbPJjFiobHXTjE0WQZyPxdN2MRoegb8aQ7Wgmwq0W8795BV4xvWCGdF4QAJ/7wgRoPkUU9KGncXYa94XSWylCf2oRDQAvAGiaefnn17LRL1F0AwccCqoF2HsiY1XQcVWTvIahv2BYVNAGZNX3BBiPh/5wZoEFPM1hGCc4+44bkAiWUIZ8VNpmTmt5LmrSDZKFlXZHPBKF95J/k2Lk=
file_glob: true
file:
- ./Source/NexusForever.*/bin/Release/netcoreapp*.*/*-x64/publish/*.zip
skip_cleanup: true
on:
branch: master