+2
-2
@@ -48,7 +48,7 @@ export async function createArchives(
|
||||
})
|
||||
|
||||
archive.pipe(output)
|
||||
archive.directory(distPath, false) // TODO: make sure this doesn't include dirs that start with ., same with below
|
||||
archive.directory(distPath, false)
|
||||
archive.finalize()
|
||||
})
|
||||
|
||||
@@ -57,7 +57,7 @@ export async function createArchives(
|
||||
.c(
|
||||
{
|
||||
file: tarPath,
|
||||
C: distPath, // Change to the source directory for relative paths (TODO)
|
||||
C: distPath,
|
||||
gzip: true
|
||||
},
|
||||
['.']
|
||||
|
||||
+1
-1
@@ -163,7 +163,7 @@ async function uploadLayer(
|
||||
headers: {
|
||||
Authorization: `Bearer ${b64Token}`,
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'Accept-Encoding': 'gzip', // TODO: What about for the config layer?
|
||||
'Accept-Encoding': 'gzip',
|
||||
'Content-Length': layer.size.toString()
|
||||
},
|
||||
validateStatus: () => {
|
||||
|
||||
@@ -53,7 +53,6 @@ export function createActionPackageManifest(
|
||||
return manifest
|
||||
}
|
||||
|
||||
// TODO: is this ok hardcoded?
|
||||
function createConfigLayer(): Layer {
|
||||
const configLayer: Layer = {
|
||||
mediaType: 'application/vnd.github.actions.package.config.v1+json',
|
||||
|
||||
Reference in New Issue
Block a user