Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Sep 18, 2024

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
.github/workflows/build_binary.yml Show resolved Hide resolved
@joshuarli joshuarli merged commit 7075a7b into master Sep 18, 2024
29 of 30 checks passed
@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