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 PyPI CD #59

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Fix PyPI CD #59

merged 1 commit into from
Jan 20, 2025

Conversation

robin-nitrokey
Copy link
Member

@robin-nitrokey robin-nitrokey commented Jan 17, 2025

This fixes two problems with the PyPI CD: It did not handle prereleases, and the github.event.name filter did not work.

It now uses types: [published] as a trigger as recommended here: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release

And it uses github.event_name as a filter as documented here: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#github-context

This fixes two problems with the PyPI CD:  It did not handle
prereleases, and the github.event.name filter did not work.

It now uses types: [published] as a trigger as recommended here:
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release

And it uses github.event_name as a filter as documented here:
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#github-context
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