Skip to content

ci: update actions/upload-artifact to v4 with merge#4042

Merged
joshuarli merged 5 commits intomasterfrom
ci-artifact-v4-with-merge
Sep 18, 2024
Merged

ci: update actions/upload-artifact to v4 with merge#4042
joshuarli merged 5 commits intomasterfrom
ci-artifact-v4-with-merge

Conversation

@joshuarli
Copy link
Member

@joshuarli joshuarli commented Sep 17, 2024

Supersedes #3876 by using artifacts/merge to merge together multiple artifacts from different jobs into the single one named github.sha that craft expects.

Summarily, upload-artifact v3 is deprecated but v4 doesn't support mutating an artifact with the name name by uploading different filepaths to the same artifact. Because we need a single artifact "github.sha", we have to use actions/merge to create it. Alternatively craft could be modified but this is the easiest way forward and I like the idea of a unified artifact, it makes craft simpler.

ref: getsentry/craft#552

#skip-changelog

@joshuarli
Copy link
Member Author

Here's a successful binary release run that results in the same unified artifact named {{ github.sha }}: https://github.com/getsentry/relay/actions/runs/10910443909?pr=4042

@Dav1dde Dav1dde added the Trigger: Full-CI Runs all CI steps in a PR label Sep 18, 2024
@joshuarli joshuarli merged commit 7075a7b into master Sep 18, 2024
@joshuarli joshuarli deleted the ci-artifact-v4-with-merge branch September 18, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Trigger: Full-CI Runs all CI steps in a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants