[Artifacts] zip creation + blob storage upload functionality (#1488)

* Artifact zip creation + blob storage upload functionality

* Fix lint

* PR feedback
This commit is contained in:
Konrad Pabjan
2023-08-10 15:28:41 -04:00
committed by GitHub
parent ab78839e86
commit 45c49b09df
6 changed files with 906 additions and 15 deletions

View File

@@ -1,3 +1,9 @@
// Used for controlling the highWaterMark value of the zip that is being streamed
// The same value is used as the chunk size that is use during upload to blob storage
export function getUploadChunkSize(): number {
return 8 * 1024 * 1024 // 8 MB Chunks
}
export function getRuntimeToken(): string {
const token = process.env['ACTIONS_RUNTIME_TOKEN']
if (!token) {