File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ artifacts:
24
24
25
25
test : off
26
26
environment :
27
- IS_SECURE_BUILDENVIRONM∥ENT :
27
+ IS_SECURE_BUILDENVIRONMENT :
28
28
secure : The encoded value of 'true' (not including the apostrophes)
29
29
GITHUB_REPO_TOKEN :
30
30
secure : The encoded value of your GitHub Access Token.
Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ public static class Choco
17
17
Command . Execute ( "choco.exe" , $@ "pack Chocolatey\chocolatey.nuspec --outputdirectory { outputFolder } ") ;
18
18
}
19
19
20
+ public static void Push ( string packagesFolder , string apiKey , string source = "https://push.chocolatey.org/" )
21
+ {
22
+ var packageFiles = Directory . GetFiles ( packagesFolder , "*.nupkg" ) ;
23
+ foreach ( var packageFile in packageFiles )
24
+ {
25
+ Command . Execute ( "choco.exe" , $ "push { packageFile } --source { source } --key { apiKey } ") ;
26
+ }
27
+ }
28
+
20
29
private static void CreateSpecificationFromProject ( string pathToProjectFile , string pathToBinaries )
21
30
{
22
31
var projectFile = XDocument . Load ( pathToProjectFile ) ;
You can’t perform that action at this time.
0 commit comments