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

CU-8693ftbyx: Make GH pre-release tag apply for PyPI #389

Closed
wants to merge 14 commits into from

Conversation

mart-r
Copy link
Collaborator

@mart-r mart-r commented Jan 8, 2024

Currently when drafting a release on GitHub and marking it as a pre-release, it gets sent to PyPI as a full release rather than a pre-release.

This PR attempts to fix that by

  • Checking if the release is a pre-release
  • If it is, pass it on to PyPI as such

PS:
I don't really know how to test the change. I just put it together from example online.

@tomolopolis
Copy link
Member

Copy link
Member

@baixiac baixiac left a comment

Choose a reason for hiding this comment

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

LTGM and one minor comment.

# The idea is that if the pre-release works, so does the regular release.
# The other option would be to run for pre-release and regular release
# but the trivial version for that would duplicate a bunch of the YAML.
run: echo ::set-output name=is_prerelease::true
Copy link
Member

Choose a reason for hiding this comment

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

The set-output has been deprecated so pls consider using other options such as GITHUB_ENV. The same applies to line 96.

@mart-r
Copy link
Collaborator Author

mart-r commented Jan 15, 2024

This does not do anything.
As per the action:
https://github.com/CogStack/MedCAT/actions/runs/7464041795/job/20310539426

Warning: Unexpected input(s) 'prerelease', valid inputs are ['entryPoint', 'args', 'user', 'password', 'repository_url', 'packages_dir', 'verify_metadata', 'skip_existing', 'verbose']

@mart-r mart-r closed this Jan 15, 2024
@mart-r mart-r deleted the CU-8693ftbyx-prod-4-pre-release branch August 12, 2024 12:51
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