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

builder: add upload-artifact flag to skip uploading artifacts #174

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

xTVaser
Copy link
Contributor

@xTVaser xTVaser commented Jan 6, 2024

About a month ago GitHub made a breaking change to upload-artifact and download-artifact https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available/

TLDR artifacts uploaded with v3 can't be downloaded with v4 and vise-versa.

The flatpak-builder automatically uploads the artifact it builds using v3, because it's still using 1.X.X of https://www.npmjs.com/package/@actions/artifact?activeTab=readme and I ran into this pain-point when trying to migrate our CI across the board PCSX2/pcsx2#10431

This contribution provides a non-breaking migration path for consumers so they can handle the uploading of the artifact themselves and skip the redundant v3 upload. This may be useful for other reasons as well:

  • when you want your artifacts to all follow a naming convention
  • you are a private repo and you don't want to use your github-actions storage limit

This repo should probably migrate to v2 of @actions/artifact eventually, but that would require a major release as it's a breaking change for anyone using v3 to download them -- this isn't something I wanted to get involved with.

@bilelmoussaoui
Copy link
Member

The change looks good to me! thanks

@bilelmoussaoui bilelmoussaoui merged commit b8be6bc into flatpak:master Jan 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants