Skip to content

Add PyPI publishing workflow#3

Merged
abdellatifLabr merged 1 commit into
mainfrom
pypi-publish
Feb 26, 2026
Merged

Add PyPI publishing workflow#3
abdellatifLabr merged 1 commit into
mainfrom
pypi-publish

Conversation

@abdellatifLabr
Copy link
Copy Markdown
Owner

Summary

  • Adds GitHub Actions workflow to publish package to PyPI on tag push

Workflow Details

  • Trigger: Runs when a git tag matching v*.*.* is pushed (e.g., v0.2.0)
  • Authentication: Uses Trusted Publishing (OIDC) - no API tokens in secrets
  • Build: Uses python -m build with setuptools

How to Publish

  1. Update version in pyproject.toml
  2. Create and push a tag:
    git tag v0.2.0
    git push origin v0.2.0

Setup Required

Before first publish, configure Trusted Publishing on PyPI:

  • Go to https://pypi.org/manage/account/publishing/
  • Add publisher with:
    • Project name: jsonldb
    • Owner: your GitHub username/org
    • Repository: jsonldb
    • Workflow: publish.yml
    • Environment: create pypi environment in repo settings

@abdellatifLabr abdellatifLabr merged commit a0c11e9 into main Feb 26, 2026
3 checks passed
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.

1 participant