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

Add GitHub Actions workflow to semi-automatically publish a package to PyPI #60

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

stephenjolly
Copy link
Contributor

@stephenjolly stephenjolly commented Jun 20, 2024

This PR adds a new GitHub Actions workflow that runs whenever a new release is created, which is a manual process.

The workflow runs in the "release" environment, which will be configured to require an additional manual approval step from someone other than the person who creates the release.

The workflow is based on the one published in this Medium post, and uses the Action recommended in the official Python packaging guide. The Action uses OpenID Connect to securely convey ephemeral project-level authentication credentials to PyPI, so no secrets are stored or conveyed.

The workflow runs whenever a new release is created, which is a manual process.

The workflow runs in the "release" environment, which will be configured to require an additional manual approval step from someone other than the person who creates the release.
@stephenjolly stephenjolly self-assigned this Jun 20, 2024
@stephenjolly stephenjolly requested a review from chrisn June 20, 2024 08:45
@stephenjolly stephenjolly changed the title Add Github Action to semi-automatically publish a package to PyPI Add GitHub Actions workflow to semi-automatically publish a package to PyPI Jun 20, 2024
Technically this is redundant because the same checks are run every time changes are merged, but better safe than sorry.
@stephenjolly stephenjolly merged commit 8c0a128 into master Jun 20, 2024
32 checks passed
@stephenjolly stephenjolly deleted the pypi-publishing branch June 20, 2024 12:43
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