Skip to content

Conversation

@sudoping01
Copy link
Collaborator

Pull Request

Description

Added GitHub Actions workflow to automatically build and publish the package to PyPI when a new release is created. This automates the package distribution process and ensures consistent builds.

Related Issue(s)

N/A - Enhancement to improve CI/CD workflow

Changes Made

  • Added .github/workflows/release_packages.yaml workflow file
  • Configured automatic PyPI publishing on release creation
  • Set up Python 3.10 build environment
  • Added package building and validation steps
  • Integrated PyPI API token authentication via GitHub secrets

Testing

  • Tested workflow configuration syntax
  • Verified GitHub Actions workflow triggers correctly on release events
  • Confirmed PyPI API token is properly configured in repository secrets
  • Validated package building process works with current project structure

Checklist

  • Code follows style guidelines (ruff, isort, and optionally black)
  • [x ] Tests added or updated in the cookbook module
  • [x ] Documentation updated (e.g., README.md or docs/)
  • All tests pass (python test.py)
  • No linting errors (ruff check . and isort . --check-only)

Additional Notes

This workflow will automatically:

  1. Trigger when a new release is created on GitHub
  2. Set up Python 3.10 environment
  3. Install build dependencies
  4. Build the package using python -m build
  5. Publish to PyPI using the stored API token

The workflow uses the official PyPA GitHub Action for reliable and secure PyPI publishing. Make sure the PYPI_API_TOKEN secret is properly configured in the repository settings.

Tag @sudoping01 for review. Thanks for contributing to Djelia Python SDK! ❤️🇲🇱

@sudoping01 sudoping01 merged commit d5fc0ec into main Jun 11, 2025
1 check 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.

2 participants