File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ var KOTLINSTDLIBCOMMONURL = $"http://search.maven.org/remotecontent?filepath=org
34
34
var KOTLIANNOTATIONSURL = $ "http://search.maven.org/remotecontent?filepath=org/jetbrains/annotations/{ KOTLIANNOTATIONS_VERSION } /annotations-{ KOTLIANNOTATIONS_VERSION } .jar";
35
35
var YEARCLASSURL = $ "http://search.maven.org/remotecontent?filepath=com/facebook/device/yearclass/yearclass/{ YEARCLASS_VERSION } /yearclass-{ YEARCLASS_VERSION } .jar";
36
36
37
+ var NUGET_API_KEY = EnvironmentVariable ( "NUGET_API_KEY" ) ;
38
+
37
39
Task ( "FetchDependencies" )
38
40
. Does ( ( ) => {
39
41
// PSPDFKit.Android
@@ -118,6 +120,17 @@ Task ("NuGet")
118
120
} ) ;
119
121
} ) ;
120
122
123
+ Task ( "NuGet-Push" )
124
+ . IsDependentOn ( "Nuget" )
125
+ . Does ( ( ) =>
126
+ {
127
+ var package = "./nuget/pkgs/PSPDFKit.Android." + PSPDFKIT_VERSION + ".nupkg" ;
128
+ NuGetPush ( package , new NuGetPushSettings {
129
+ Source = "https://api.nuget.org/v3/index.json" ,
130
+ ApiKey = NUGET_API_KEY
131
+ } ) ;
132
+ } ) ;
133
+
121
134
Task ( "Clean" )
122
135
. Does ( ( ) => {
123
136
if ( FileExists ( "./PSPDFKit.Android.dll" ) )
@@ -161,4 +174,4 @@ Task ("Clean-obj-bin")
161
174
}
162
175
} ) ;
163
176
164
- RunTarget ( target ) ;
177
+ RunTarget ( target ) ;
Original file line number Diff line number Diff line change
1
+ steps :
2
+ - label : ' Build Nuget Packages'
3
+ command : ' ( ./build.sh --Target=Nuget )'
4
+ agents :
5
+ macos : true
6
+
7
+ - wait
8
+
9
+ - block : ' :rocket: Release'
10
+
11
+ - label : ' Upload Nuget Packages'
12
+ command : ' ( ./build.sh --Target=Nuget-Push)'
13
+ agents :
14
+ macos : true
You can’t perform that action at this time.
0 commit comments