|
|
|
@ -5823,6 +5823,7 @@ class ZipUploadStream extends stream.Transform {
|
|
|
|
|
exports.ZipUploadStream = ZipUploadStream;
|
|
|
|
|
function createZipUploadStream(uploadSpecification, compressionLevel = exports.DEFAULT_COMPRESSION_LEVEL) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
|
core.debug(`Creating Artifact archive with compressionLevel: ${compressionLevel}`);
|
|
|
|
|
const zip = archiver.create('zip', {
|
|
|
|
|
highWaterMark: (0, config_1.getUploadChunkSize)(),
|
|
|
|
|
zlib: { level: compressionLevel }
|
|
|
|
|