Skip to content

Commit

Permalink
Release version 2.0.0-beta-001
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Mangel committed Nov 7, 2019
1 parent eaa845b commit e1be6b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
20 changes: 13 additions & 7 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,22 @@ let pushNuget (newVersion: string) (projFile: string) =
Common = { p.Common with DotNetCliPath = "dotnet" } } )
projFile

let files =
let file =
Directory.GetFiles(projDir </> "bin" </> "Release", "*.nupkg")
|> Array.find (fun nupkg -> nupkg.Contains(newVersion))
|> fun x -> [x]

Paket.pushFiles (fun o ->
{ o with ApiKey = nugetKey
PublishUrl = "https://www.nuget.org/api/v2/package"
WorkingDir = __SOURCE_DIRECTORY__ })
files
run
"dotnet"
root
[
"paket"
"push"
"--url"
"https://www.nuget.org/api/v2/package"
"--api-key"
nugetKey
file
]

Target.create "Publish" (fun _ ->
let version = getLastVersion()
Expand Down
2 changes: 1 addition & 1 deletion paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ NUGET
System.Security.AccessControl (>= 4.6)
System.Security.Principal.Windows (>= 4.6)
Mono.Posix.NETStandard (1.0)
MSBuild.StructuredLogger (2.0.110)
MSBuild.StructuredLogger (2.0.152)
Microsoft.Build (>= 15.8.166)
Microsoft.Build.Framework (>= 15.8.166)
Microsoft.Build.Tasks.Core (>= 15.8.166)
Expand Down
2 changes: 1 addition & 1 deletion src/Thoth.Fetch.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryUrl>https://github.com/thoth-org/Thoth.Fetch</RepositoryUrl>
<PackageTags>fable;fsharp;fetch</PackageTags>
<Authors>Maxime Mangel</Authors>
<Version>2.0.0</Version>
<Version>2.0.0-beta-001</Version>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
Expand Down

0 comments on commit e1be6b9

Please sign in to comment.