Skip to content

Commit

Permalink
test ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
TitleHHHH authored and TitleHHHH committed Nov 18, 2023
1 parent 2dcb62c commit 1f0069a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,25 @@ class Build : NukeBuild
x.SetProjectFile(Solution.Platfroms.HolyClient_Desktop)
.EnableNoRestore());

ClickOncePreview.CreateOrCleanDirectory();

Repository.Clone(
"https://github.com/Titlehhhh/Minecraft-Holy-Client",
ClickOncePreview,
new CloneOptions() {
BranchName = "deploy"
});



MSBuildTasks.MSBuild(s => s

.SetTargetPath(Solution.Platfroms.HolyClient_Desktop)
.SetTargets("publish")
.SetProperty("PublishProfile", "ClickOnceProfile")
.SetProperty("PublishDir", ArtifactsDirectory / "bin"));

ClickOncePreview.CreateOrCleanDirectory();



SetupExe.MoveToDirectory(ClickOncePreview);
Expand All @@ -155,7 +166,7 @@ private void PushToDeploy()
{
try
{
Repository.Init(ClickOncePreview);

using (var repo = new Repository(ClickOncePreview))
{
RepositoryStatus status = repo.RetrieveStatus();
Expand All @@ -169,7 +180,7 @@ private void PushToDeploy()

repo.Commit($"Auto generated", signature, signature);

var remote = repo.Network.Remotes["origin"];
var remote = repo.Network.Remotes["deploy"];
var options = new PushOptions
{
CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials
Expand Down

0 comments on commit 1f0069a

Please sign in to comment.