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

fix release upload process #294

Merged
merged 3 commits into from
Mar 30, 2022
Merged

fix release upload process #294

merged 3 commits into from
Mar 30, 2022

Conversation

bacongobbler
Copy link
Member

It appears that v2.1.0 introduced multiple upload path support: https://github.com/actions/upload-artifact/releases/tag/2.1.0

Bumping to v3 should fix this.

Signed-off-by: Matthew Fisher <[email protected]>
Copy link
Member

@vdice vdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; we may want to get #295 in first, depending... standby :)

zip is not installed on Windows runners... Instead we need to use 7z.

https://github.com/TheDoctor0/zip-release/blob/master/entrypoint.sh
recommends a path forward, but let's drop this for 0.1.0 and reintroduce
afterwards.

Signed-off-by: Matthew Fisher <[email protected]>
.github/workflows/release.yml Outdated Show resolved Hide resolved
Signed-off-by: Matthew Fisher <[email protected]>
@bacongobbler bacongobbler changed the title bump upload-artifact to v3 fix release upload process Mar 30, 2022
@bacongobbler
Copy link
Member Author

bacongobbler commented Mar 30, 2022

Updated the title. This overhauls the release process and has been tested with hippo-cli:

  1. on non-windows, use tar and zip as they are available on those runners
  2. on windows, use tar and 7z (zip is unavailable on windows runners)
  3. upload artifacts from prior step

In a separate job that relies on build...

  1. pull all artifacts down on ubuntu-latest
  2. generate checksum file
  3. upload checksum as an artifact

This is because each runner maintains its own filesystem, so we have to upload all assets to github, then re-download them to generate the checksums in one fell swoop.

@bacongobbler bacongobbler merged commit 3d90f6f into fermyon:main Mar 30, 2022
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.

3 participants