{"id":17168876,"url":"https://github.com/alirezatheh/pypi-auto-publish","last_synced_at":"2026-05-09T14:41:24.643Z","repository":{"id":65157407,"uuid":"495970088","full_name":"alirezatheh/pypi-auto-publish","owner":"alirezatheh","description":"GitHub action to automate build and publish PEP 518 compliant projects (Setuptools, Flit, Poetry) on Test PyPI and/or PyPI if local package.__version__ is ahead of PyPI’s.","archived":false,"fork":false,"pushed_at":"2024-03-08T16:57:14.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T12:46:36.510Z","etag":null,"topics":["actions","github","github-actions","publish","pypi","pypi-package","release","release-automation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alirezatheh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-24T19:59:11.000Z","updated_at":"2024-03-07T13:06:57.000Z","dependencies_parsed_at":"2025-01-29T23:35:02.810Z","dependency_job_id":null,"html_url":"https://github.com/alirezatheh/pypi-auto-publish","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezatheh%2Fpypi-auto-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezatheh%2Fpypi-auto-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezatheh%2Fpypi-auto-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alirezatheh%2Fpypi-auto-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alirezatheh","download_url":"https://codeload.github.com/alirezatheh/pypi-auto-publish/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245330907,"owners_count":20597865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","github-actions","publish","pypi","pypi-package","release","release-automation"],"created_at":"2024-10-14T23:13:09.188Z","updated_at":"2026-05-09T14:41:24.588Z","avatar_url":"https://github.com/alirezatheh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyPI Auto Publish\nGitHub action to automate build and publish\n[PEP 518](https://peps.python.org/pep-0518/) compliant projects (Setuptools,\nFlit, Poetry) on Test PyPI and/or PyPI if local `package.__version__` is ahead\nof PyPI's.\n\n## Usage\n```yaml\nname: Publish\non:\n  push:\n    branches:\n      - main\n  workflow_dispatch:\n\njobs:\n  pypi-publish:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: alirezatheh/pypi-auto-publish@v1\n        with:\n          test-api-pypi-token: ${{ secrets.TEST_PYPI_API_TOKEN }}\n          pypi-api-token: ${{ secrets.PYPI_API_TOKEN }}\n```\n\nThe action assume:\n- The project has a `setup.py`, `setup.cfg` or `pyproject.toml` in the\n  top-level directory.\n- Python and pip are installed (e.g. by `actions/setup-python@v3`).\n\n## Inputs\n- `test-api-pypi-token`: API token of the Test PyPI account publishing the\n  project. If missing, publish on Test PyPI is skipped (optional).\n- `pypi-api-token`: API token of the PyPI account publishing the project\n  (required).\n- `package-name`: Name of the PyPI package, Defaults to repository name\n  (optional).\n\n\n## Acknowledgements\nThis action is inspired by\n[pypi-auto-publish](https://github.com/etils-actions/pypi-auto-publish)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falirezatheh%2Fpypi-auto-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falirezatheh%2Fpypi-auto-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falirezatheh%2Fpypi-auto-publish/lists"}