Skip to content

Commit 51b14f0

Browse files
committed
Removed unnecesary step from deploy
1 parent 738417c commit 51b14f0

File tree

1 file changed

+0
-33
lines changed
  • update-conference-prague-2024/demo-code-feedback-system/deploy/deploy

1 file changed

+0
-33
lines changed

update-conference-prague-2024/demo-code-feedback-system/deploy/deploy/Program.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -46,39 +46,6 @@ private string LoadParameter(ICakeContext context, string parameterName)
4646
}
4747
}
4848

49-
[TaskName(nameof(UnzipAssetsTask))]
50-
public sealed class UnzipAssetsTask : FrostingTask<BuildContext>
51-
{
52-
public override void Run(BuildContext context)
53-
{
54-
_ = Directory.CreateDirectory(context.UnzippedArtifactsDir);
55-
56-
ExtractArchive("programmer-al-site", context);
57-
}
58-
59-
private void ExtractArchive(string zipName, BuildContext context)
60-
{
61-
var zipFilePath = $"{context.ReleaseArtifactsDownloadDir}/{zipName}.zip";
62-
var outputPath = $"{context.UnzippedArtifactsDir}/{zipName}";
63-
64-
context.Log.Information($"Extracting zip '{zipFilePath}' to '{outputPath}'");
65-
66-
using var fileStream = File.OpenRead(zipFilePath);
67-
using var archive = new ZipArchive(fileStream);
68-
archive.ExtractToDirectory(outputPath);
69-
}
70-
71-
private void CopyArchive(string zipName, BuildContext context)
72-
{
73-
var zipFilePath = $"{context.ReleaseArtifactsDownloadDir}/{zipName}.zip";
74-
var outputPath = $"{context.UnzippedArtifactsDir}/{zipName}.zip";
75-
76-
context.Log.Information($"Copying zip '{zipFilePath}' to '{outputPath}'");
77-
File.Copy(sourceFileName: zipFilePath, destFileName: outputPath);
78-
}
79-
}
80-
81-
[IsDependentOn(typeof(UnzipAssetsTask))]
8249
[TaskName(nameof(UpdatePulumiConfigTask))]
8350
public sealed class UpdatePulumiConfigTask : FrostingTask<BuildContext>
8451
{

0 commit comments

Comments
 (0)