upload-artifact/src/upload/upload-inputs.ts
Daniel Kennedy bbbca2ddaa
Some checks failed
Check dist/ / check-dist (push) Successful in 9m51s
Licensed / Check licenses (push) Failing after 32s
Test Proxy / test-proxy-upload (push) Failing after 33s
Test / Build (ubuntu-latest) (push) Failing after 32s
Test / Upload HTML Report (push) Failing after 32s
Test / Build (macos-latest) (push) Has been cancelled
Test / Build (windows-latest) (push) Has been cancelled
Test / Merge (push) Has been cancelled
Test / Cleanup Artifacts (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Failing after 32s
Support direct file uploads (#764)
* Cache licenses

* Bump minimatch to 10.1.1

* Try fixing licenced issues

* More licensed fixes

* Support direct file uploads

* Add CI tests for direct uploads

* Use download-artifact@main temporarily

* CI: clean up artifacts on successful runs

* Use script v8

* Fix some issues with the cleanup

* Add unit tests

* Clarify naming
2026-02-25 16:04:27 -05:00

45 lines
973 B
TypeScript

import {NoFileOptions} from './constants.js'
export interface UploadInputs {
/**
* The name of the artifact that will be uploaded
*/
artifactName: string
/**
* The search path used to describe what to upload as part of the artifact
*/
searchPath: string
/**
* The desired behavior if no files are found with the provided search path
*/
ifNoFilesFound: NoFileOptions
/**
* Duration after which artifact will expire in days
*/
retentionDays: number
/**
* The level of compression for Zlib to be applied to the artifact archive.
*/
compressionLevel?: number
/**
* Whether or not to replace an existing artifact with the same name
*/
overwrite: boolean
/**
* Whether or not to include hidden files in the artifact
*/
includeHiddenFiles: boolean
/**
* Whether or not to archive (zip) the artifact before uploading.
* When false, only a single file can be uploaded.
*/
archive: boolean
}