-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (60 loc) · 2.61 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
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
language: csharp
mono: none
branches:
except:
- /^untagged/
- /^nightly/
git:
depth: 2
quiet: true
symlinks: true
jobs:
include:
- stage: "Compile for amd64 Windows"
os: windows
script:
- choco install dotnetcore-sdk
- dotnet --version
- dotnet restore
- dotnet publish -r win-x64 --configuration Release -p:PublishSingleFile=true
deploy: &deploy_base
provider: releases
api_key:
secure: LBMhhnL69Uh0jffdPoDCN7YUkj2azj6YUjgxBVgZ2OOtW4IPfpo8f4hwN/HjF5Sf+LHv4RYxvWm5sRKBtftWF90hMjFzeKJ16agnjIN/eP/tcTvSutXyn25oYYqyJOMs/wMGhcAelb0KD9s6h7JIRsG09f5DL8ONlMpzzqM+7AiQeIohJ/RPF7on2flUqywpRYHPfC/dVHxSj6QKQRGiOSUd8r15W6CmQsEknuidMzW8noZImClr+3KUeYBDS0Khn91iol2bAI3RUQ/TTH2G2he1dqXZZ2OH2oxdYtCjIcV1EyMDPPOrdyZ3/14BSaXveqOp2JBMJtZt2fkvLq2zaBTh2JBPAWM3j+tFukagwWhfLihe/Wq4NDjpJUjdTK2n5JTtqb1R58pIZNhFo0Mb8dkcrL/vrWw10aOo4snZNOTmRvcLM9J1G2bdy/uNZzSzCzXEIQEW58FUVeuhjpFDuYNRbEVyA88IkymQJI6TUBSx3zK4W6DmWNc1UslP6g4BdjOOK9d182at9Z9ZnLaxvYaNECfNxlu+fAfcJepf3StSBRIiXyRbCM8GCzLnKIOR7JxzPoY3BDFnSAb6dV84Fk6QXirPBbsr/ZGcJBiqCqWBTU+YIwM20pDuRyAkRMfFDMqCs5xw7JFe5pzdgUA/C3gSlJgUhT0a67/iNbeK5vQ=
file: "ImagePoster4DTF/bin/Release/netcoreapp3.1/win-x64/publish/ImagePoster4DTF.exe"
draft: true
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: "[$TRAVIS_TAG] Nightly release for $TRAVIS_COMMIT"
prerelease: true
overwrite: true
skip_cleanup: true
- stage: "Compile for amd64 macOS"
os: osx
osx_image: xcode11.5
dotnet: 3.1.301
script:
- dotnet restore
- dotnet publish -r osx-x64 --configuration Release -p:PublishSingleFile=true
- "cp ./ImagePoster4DTF/bin/Release/netcoreapp3.1/osx-x64/publish/ImagePoster4DTF ./ImagePoster4DTF_macOS"
deploy:
<<: *deploy_base
file: "ImagePoster4DTF_macOS"
- stage: "Compile for amd64 GNU/Linux and deploy GitHub Release"
os: linux
dist: bionic
dotnet: 3.1.301
script:
- dotnet restore
- dotnet publish -r linux-x64 --configuration Release -p:PublishSingleFile=true
- "cp ./ImagePoster4DTF/bin/Release/netcoreapp3.1/linux-x64/publish/ImagePoster4DTF ./ImagePoster4DTF_linux"
deploy:
<<: *deploy_base
draft: false
file: "ImagePoster4DTF_linux"
before_deploy:
- git config --local user.name "Artoria Pendragon"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG="nightly-$TRAVIS_BUILD_NUMBER"
- echo "Tagging commit ${TRAVIS_COMMIT} with tag ${TRAVIS_TAG}"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"