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: run pypi upload from published draft releases #2461

Merged
merged 3 commits into from
Aug 30, 2021

Conversation

onerandomusername
Copy link
Contributor

@onerandomusername onerandomusername commented Aug 29, 2021

Description

Fixes pypi_upload.yml not running when @ichard26 published a draft release to release 21.8b0.

Documentation is here, https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release, and since upload_binary ran, with this:

on:
release:
types: [published]

changing the trigger for pypi_upload.yml to same as the above should fix the problem.

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

@ichard26 ichard26 added the skip news Pull requests that don't need a changelog entry. label Aug 29, 2021
Copy link
Collaborator

@ichard26 ichard26 left a comment

Choose a reason for hiding this comment

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

Part of me wants to consolidate the OS native binaries and PyPI build+ upload workflows into one file, but this fixes a possible pitfall with the release system. This is already a win. Thanks @onerandomusername! You're awesome!

@onerandomusername
Copy link
Contributor Author

Just noticed, the docker workflow also uses created, and not released.

@onerandomusername
Copy link
Contributor Author

I think its fixed now, also checked logs and it didn't run either.
https://github.com/psf/black/actions/workflows/docker.yml

@ichard26 as you had to push to pypi manually, there is also not a published docker image for this release. https://hub.docker.com/r/pyfound/black/tags?page=1&ordering=last_updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Pull requests that don't need a changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants