Support direct file uploads (#764)
Some checks are pending
Check dist/ / check-dist (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Licensed / Check licenses (push) Waiting to run
Test Proxy / test-proxy-upload (push) Waiting to run
Test / Build (push) Waiting to run
Test / Build-1 (push) Waiting to run
Test / Build-2 (push) Waiting to run
Test / Upload HTML Report (push) Waiting to run
Test / Merge (push) Blocked by required conditions
Test / Cleanup Artifacts (push) Blocked by required conditions

* 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
This commit is contained in:
Daniel Kennedy 2026-02-25 16:04:27 -05:00 committed by GitHub
parent 589182c5a4
commit bbbca2ddaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 242 additions and 14 deletions

View file

@ -3,10 +3,10 @@ description: 'Upload a build artifact that can be used by subsequent workflow st
author: 'GitHub'
inputs:
name:
description: 'Artifact name'
description: 'Artifact name. If the `archive` input is `false`, the name of the file uploaded will be the artifact name.'
default: 'artifact'
path:
description: 'A file, directory or wildcard pattern that describes what to upload'
description: 'A file, directory or wildcard pattern that describes what to upload.'
required: true
if-no-files-found:
description: >
@ -45,6 +45,12 @@ inputs:
If true, hidden files will be included in the artifact.
If false, hidden files will be excluded from the artifact.
default: 'false'
archive:
description: >
If true, the artifact will be archived (zipped) before uploading.
If false, the artifact will be uploaded as-is without archiving.
When `archive` is `false`, only a single file can be uploaded. The name of the file will be used as the artifact name (ignoring the `name` parameter).
default: 'true'
outputs:
artifact-id: