File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
update-conference-prague-2024/demo-code-feedback-system/deploy/deploy Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -46,39 +46,6 @@ private string LoadParameter(ICakeContext context, string parameterName)
46
46
}
47
47
}
48
48
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 ) ) ]
82
49
[ TaskName ( nameof ( UpdatePulumiConfigTask ) ) ]
83
50
public sealed class UpdatePulumiConfigTask : FrostingTask < BuildContext >
84
51
{
You can’t perform that action at this time.
0 commit comments