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: add ability to upload wasm artefacts based on release hash #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hydrobeam
Copy link
Contributor

closes AXE-6843

the new workflow is mostly adapted from release.yaml

@hydrobeam hydrobeam requested a review from a team as a code owner December 6, 2024 16:32
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.20%. Comparing base (017d421) to head (dbcafbd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
- Coverage   89.23%   89.20%   -0.04%     
==========================================
  Files          43       43              
  Lines        2936     2936              
==========================================
- Hits         2620     2619       -1     
- Misses        316      317       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cf-config-bucket-root-key: "${{ vars.CF_BUCKET_ROOT_KEY }}"

# we just want to upload to CF, do not run a github release
github-release: "false"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if github-release: "false" is the correct usage. Since we just want to upload to CF and don't want to run a github release, wouldn't it be something like cf-upload-wasm-to-bucket: "true"? This is somewhat confusing to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is that we always upload to CF but only sometimes want to do a github release. For regular releases, we do want to upload to github, so I just added the option to disable it and disabled it when we "release" based on the hash.

github-release:
description: "Whether to upload the build as a github release"
required: false
default: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just wondering, why is it not required but defaulted to true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mentioned it above, but, for regular releases we /do/ want to run a github release, so I had the default set to true so that I didn't have to change release.yaml.

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