-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (30 loc) · 894 Bytes
/
.travis.yml
File metadata and controls
31 lines (30 loc) · 894 Bytes
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
language: csharp
mono: none
group: dev
sudo: required
dist: xenial
addons:
snaps:
- name: dotnet-sdk
classic: true
channel: latest/beta
jobs:
include:
- stage: build
script:
- sudo snap alias dotnet-sdk.dotnet dotnet
- dotnet --version
- dotnet build Cloo/Cloo.csproj
- dotnet build ClootilsNetCore/ClootilsNetCore.csproj
- dotnet build ClootilsNetCoreUI/ClootilsNetCoreUI.csproj
- stage: deploy
if: branch = master AND tag IS present
script:
- dotnet pack Cloo/Cloo.csproj --configuration Release
deploy:
- provider: script
skip_cleanup: true
script: dotnet nuget push Cloo/bin/Release/Cloo.clSharp.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: false