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 pypa/gh-action-pypi-publish for publishing #579

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Conversation

ludeeus
Copy link
Contributor

@ludeeus ludeeus commented Feb 28, 2024

I'm unsure if these permissions are too restrictive, so Ill leave this PR in draft until I have verified that.

Did a simple test here, and it seems to be just fine:

@ludeeus ludeeus marked this pull request as ready for review February 28, 2024 15:24
.github/workflows/pythonpublish.yml Outdated Show resolved Hide resolved
path: "dist/"

- name: "Publish dists to PyPI"
uses: "pypa/gh-action-pypi-publish@e53eb8b103ffcb59469888563dc324e3c8ba6f06" # v1.8.12
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the commit pin a security measure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is the action that is responsible for generating a token, and uploading the files to pypi.

Tags/releases can be replaced, commits can not.

@ludeeus ludeeus merged commit aae9ef0 into master Feb 29, 2024
3 checks passed
@ludeeus ludeeus deleted the release-changes branch February 29, 2024 13:13
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