-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (40 loc) · 1.87 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
language: csharp
solution: ShowPics.sln
mono: none
dotnet: 2.1.401
os: linux
dist: trusty
env:
- secure: "T4NlnO74f3R3XKeAAtHyQQK2D1SJ/4G0b2P2dO8rtIxeeDLDLFhmPwjEsKIQX3T37hjzfpt3KGtsUVyMX+JV0XUghaDlCIefnhTCxaKKcDINhgG7R6n24b0ogUiCuObLpeMI9TD/2BM1zvx+/qojuXEoMydzJiRNsPbfBnke1tvvpfRyDr39w8k6uL72pzKevTHEB0D7WZ71ua5t7B+h0rB2D4X+LZ9ddj53Pf/0LQbbWYA9zk45vKgzUGFKbjys9FP6dJBLf7WKU+xfqZ8b4osDdHoBGnen8f4/HWqi0ObEBfKApKPlJfX5QIP4SqegcSsNC7CZSFPdZdfXTsPoYWRqyRbqlxeHvwRgQ3Np3guV4hLXTdSrke7lr/NyXw1Lqjs1hseRq+9PkoKEAJWf6oAECv466RfQ5Iz87H0un4uz+sGTUtezLr1lK+/ekoq0li290egjBjv+GZkfzNvsXI25wqDY+xAjwv7A0SCEE1qKcU3B2/XG59hmZYx9/kGSSi5Qq0IRJjPo+TtqR3JPetziQWb4FWQptEeNT7Pig3sujkEkmmq9Xbu092hVFIzy09fBHqqGh8JYfXOLkQmd3FLZIIzRdoeVedQEGoegh1LFtgRppqiHwtnb57eUxWYhEMjkrsbYTNCLhBn4tbYX+K0suXijoduKxOJ2B+AnxmM="
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main"
key_url: "https://packages.microsoft.com/keys/microsoft.asc"
packages:
- powershell
install:
- nvm install 8.12.0
script:
- nvm use 8.12.0
- dotnet build
before_deploy:
- dotnet publish ShowPics/ShowPics.csproj --configuration Release
- dotnet publish ShowPics/ShowPics.csproj --configuration Release --runtime linux-arm
- mkdir release
- chmod a+x ShowPics/bin/Release/netcoreapp2.1/linux-arm/publish/ShowPics
- tar -czf release/showpics_${TRAVIS_TAG}_fdd_any.tar.gz -C ShowPics/bin/Release/netcoreapp2.1/publish .
- tar -czf release/showpics_${TRAVIS_TAG}_scd_linux-arm.tar.gz -C ShowPics/bin/Release/netcoreapp2.1/linux-arm/publish .
deploy:
provider: releases
api_key: ${GITHUB_RELEASE_TOKEN}
file:
- release/showpics_${TRAVIS_TAG}_fdd_any.tar.gz
- release/showpics_${TRAVIS_TAG}_scd_linux-arm.tar.gz
skip_cleanup: true
prerelease: true
on:
all_branches: true
tags: true
after_deploy:
- pwsh -f tools/after_deploy.ps1