Skip to content

Conversation

@tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Dec 10, 2025

No description provided.

build-publish:

runs-on: ubuntu-latest
environment: publish
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not strictly required, but PyPI recommends setting the environment:

Image

Comment on lines +17 to +18
permissions:
id-token: write
Copy link
Member Author

Choose a reason for hiding this comment

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

This permission is required for the publish action: https://github.com/pypa/gh-action-pypi-publish

- name: Publish distribution to PyPI 🚀
uses: pypa/gh-action-pypi-publish@release/v1
with:
package-dir: ./${{ env.PACKAGE_NAME }}/dist/
Copy link
Member Author

Choose a reason for hiding this comment

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

The default package-dir is dist/ so we need to change it to point to the correct package

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