File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,19 @@ open Octokit
103103Target " Release" ( fun _ ->
104104 let user = getUserInput " Username: "
105105 let pw = getUserPassword " Password: "
106+ let remote =
107+ Git.CommandHelper.getGitResult " " " remote -v"
108+ |> Seq.filter ( fun ( s : string ) -> s.EndsWith( " (push)" ))
109+ |> Seq.tryFind ( fun ( s : string ) -> s.Contains( githubOrg + " /" + project))
110+ |> function None -> " https://github.com/" + githubOrg + " /" + project
111+ | Some ( s: string) -> s.Split().[ 0 ]
106112
107113 StageAll " "
108114 Git.Commit.Commit " " ( sprintf " Bump version to %s " release.NugetVersion)
109- Branches.push " "
115+ Branches.pushBranch " " remote ( Information.getBranchName " " )
110116
111117 Branches.tag " " release.NugetVersion
112- Branches.pushTag " " " origin " release.NugetVersion
118+ Branches.pushTag " " remote release.NugetVersion
113119
114120 // release on github
115121 createClient user pw
You can’t perform that action at this time.
0 commit comments