add subdirectories in archives

This commit is contained in:
ddivad195
2024-04-09 17:05:31 +01:00
parent f11d125628
commit 85d00a6e39
2 changed files with 6 additions and 4 deletions
Generated Vendored
+3 -2
View File
@@ -99504,7 +99504,7 @@ async function createArchives(distPath, archiveTargetPath) {
resolve(fileMetadata(zipPath)); resolve(fileMetadata(zipPath));
}); });
archive.pipe(output); archive.pipe(output);
archive.directory(distPath, false); archive.directory(distPath, 'action');
archive.finalize(); archive.finalize();
}); });
const createTarPromise = new Promise((resolve, reject) => { const createTarPromise = new Promise((resolve, reject) => {
@@ -99512,7 +99512,8 @@ async function createArchives(distPath, archiveTargetPath) {
.c({ .c({
file: tarPath, file: tarPath,
C: distPath, C: distPath,
gzip: true gzip: true,
prefix: 'action'
}, ['.']) }, ['.'])
// eslint-disable-next-line github/no-then // eslint-disable-next-line github/no-then
.catch(err => { .catch(err => {
+3 -2
View File
@@ -48,7 +48,7 @@ export async function createArchives(
}) })
archive.pipe(output) archive.pipe(output)
archive.directory(distPath, false) archive.directory(distPath, 'action')
archive.finalize() archive.finalize()
}) })
@@ -58,7 +58,8 @@ export async function createArchives(
{ {
file: tarPath, file: tarPath,
C: distPath, C: distPath,
gzip: true gzip: true,
prefix: 'action'
}, },
['.'] ['.']
) )