-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (56 loc) · 1.75 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
stages:
- install
- nuget
- deploy
install:
stage: install
script:
- msbuild UsabillaBindings/XamarinBinding.sln -t:Clean
- nuget restore UsabillaBindings/XamarinBinding.sln
- msbuild UsabillaBindings/XamarinBinding.sln
tags:
- xamarin
cache:
key: xamarin-cache
paths:
- UsabillaBindings/
artifacts:
paths:
- UsabillaBindings/Xamarin.Usabilla.Android/bin/Debug/Xamarin.Usabilla.Android.Bindings.dll
- UsabillaBindings/Xamarin.Usabilla.Android/bin/Debug/Xamarin.Usabilla.Android.Bindings.pdb
- UsabillaBindings/Xamarin.Usabilla.Android/Xamarin.Usabilla.Android/bin/Debug/Xamarin.Usabilla.dll
- UsabillaBindings/Xamarin.Usabilla.Android/Xamarin.Usabilla.Android/bin/Debug/Xamarin.Usabilla.pdb
- UsabillaBindings/Xamarin.Usabilla.iOS/bin/Debug/Xamarin.Usabilla.dll
- UsabillaBindings/Xamarin.Usabilla.iOS/bin/Debug/Xamarin.Usabilla.pdb
- UsabillaBindings/Xamarin.Usabilla.PCL/bin/Debug/Xamarin.Usabilla.PCL.dll
- UsabillaBindings/Xamarin.Usabilla.PCL/bin/Debug/Xamarin.Usabilla.PCL.pdb
- UsabillaBindings/Xamarin.Usabilla.PCL/Xamarin.Usabilla/bin/Debug/Xamarin.Usabilla.dll
- UsabillaBindings/Xamarin.Usabilla.PCL/Xamarin.Usabilla/bin/Debug/Xamarin.Usabilla.pdb
nuget:
stage: nuget
script:
- mkdir artifact
- nuget pack nuget/Usabilla.nuspec -OutputDirectory artifact
tags:
- xamarin
cache:
key: xamarin-cache
paths:
- UsabillaBindings/
artifacts:
paths:
- artifact
upload:
stage: deploy
cache:
key: xamarin-cache
paths:
- UsabillaBindings/
script:
- nuget push artifact/*.nupkg $NUGET_ORG_KEY -src https://api.nuget.org/v3/index.json
only:
- /v[0-9]+\.[0-9]+\.[0-9]+.*/
except:
- branches
tags:
- xamarin