We have a v4-betabranch of upload-artifact that we are starting to use internally. Note that it only works for select repositories that have the necessary feature flags enabled.
With a workflow file such as this we are able to successfully output and display the artifact ID in another job. Long term this ID will be used as input to create a deployment.
Overview
Closes https://github.com/github/actions-results-team/issues/1987
We have a
v4-beta
branch of upload-artifact that we are starting to use internally. Note that it only works for select repositories that have the necessary feature flags enabled.One of the main differences between v1-v3 upload-artifact and v4 is that the artifact will become available immediately in the UI and the artifact ID will also immediately be available as a step output. See https://github.com/actions/upload-artifact/blob/aa5cae10db2b39d79f5244f6bc5084278993a3ae/action.yml#L26-L31
We need to output the artifact ID so that we can use it later in the pages deployment flow.
Testing
See https://github.com/bbq-beets/testing-artifacts-v4/actions/runs/6658237875 for an E2E flow.
With a workflow file such as this we are able to successfully output and display the artifact ID in another job. Long term this ID will be used as input to create a deployment.