From 85d00a6e39f2d20de9002694e4e9ada9dc8678d6 Mon Sep 17 00:00:00 2001 From: ddivad195 Date: Tue, 9 Apr 2024 17:05:31 +0100 Subject: [PATCH] add subdirectories in archives --- dist/index.js | 5 +++-- src/fs-helper.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index e891802..b48e3f4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -99504,7 +99504,7 @@ async function createArchives(distPath, archiveTargetPath) { resolve(fileMetadata(zipPath)); }); archive.pipe(output); - archive.directory(distPath, false); + archive.directory(distPath, 'action'); archive.finalize(); }); const createTarPromise = new Promise((resolve, reject) => { @@ -99512,7 +99512,8 @@ async function createArchives(distPath, archiveTargetPath) { .c({ file: tarPath, C: distPath, - gzip: true + gzip: true, + prefix: 'action' }, ['.']) // eslint-disable-next-line github/no-then .catch(err => { diff --git a/src/fs-helper.ts b/src/fs-helper.ts index 37b4aaf..6ce0f35 100644 --- a/src/fs-helper.ts +++ b/src/fs-helper.ts @@ -48,7 +48,7 @@ export async function createArchives( }) archive.pipe(output) - archive.directory(distPath, false) + archive.directory(distPath, 'action') archive.finalize() }) @@ -58,7 +58,8 @@ export async function createArchives( { file: tarPath, C: distPath, - gzip: true + gzip: true, + prefix: 'action' }, ['.'] )