-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.gitlab-ci.yml
41 lines (38 loc) · 1.08 KB
/
.gitlab-ci.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
stages:
- build
- deploy
build:
image: microsoft/dotnet:2.1-sdk
stage: build
script:
- dotnet build Charlotte -c Release -o "${PWD}/artifacts/"
- dotnet build Charlotte.Tests -c Release -o "${PWD}/artifacts/"
- dotnet build Charlotte.Examples -c Release -o "${PWD}/artifacts/"
- dotnet test Charlotte.Tests/Charlotte.Tests.csproj
artifacts:
expire_in: 31d
paths:
- artifacts/*
deploy_dev:
image: microsoft/dotnet:2.1-sdk
stage: deploy
script:
- dotnet pack Charlotte --version-suffix alpha -c Release -o "${PWD}/artifacts/"
- dotnet nuget push Charlotte -s https://api.nuget.org/v3/index.json -k $nuget_api_key
artifacts:
expire_in: 31d
paths:
- artifacts/*
only:
- dev
deploy_master:
image: microsoft/dotnet:2.1-sdk
stage: deploy
script:
- dotnet pack Charlotte --version-suffix beta -c Release -o "${PWD}/artifacts/"
- dotnet nuget push --force-english-output -s https://api.nuget.org/v3/index.json -k "${nuget_api_key}" ./artifacts/*.nupkg
artifacts:
paths:
- artifacts/*
only:
- master