{"id":19442196,"url":"https://github.com/commandcracker/pypi-publish","last_synced_at":"2026-04-12T16:02:42.536Z","repository":{"id":109409321,"uuid":"498455734","full_name":"Commandcracker/pypi-publish","owner":"Commandcracker","description":"Automatically publish packages to PyPI and crete Tags and Releases","archived":false,"fork":false,"pushed_at":"2024-05-28T14:32:25.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T22:10:05.562Z","etag":null,"topics":["actions","pypi","pypi-package","python","python3","release","release-automation","tagging","upload","workflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Commandcracker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"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-31T18:38:56.000Z","updated_at":"2024-05-28T14:32:28.000Z","dependencies_parsed_at":"2024-11-10T15:51:18.007Z","dependency_job_id":null,"html_url":"https://github.com/Commandcracker/pypi-publish","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandcracker%2Fpypi-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandcracker%2Fpypi-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandcracker%2Fpypi-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commandcracker%2Fpypi-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Commandcracker","download_url":"https://codeload.github.com/Commandcracker/pypi-publish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240626742,"owners_count":19831592,"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","pypi","pypi-package","python","python3","release","release-automation","tagging","upload","workflow"],"created_at":"2024-11-10T15:38:34.063Z","updated_at":"2025-10-18T00:07:49.072Z","avatar_url":"https://github.com/Commandcracker.png","language":"Python","readme":"# pypi-publish\n\nAutomatically publish packages to PyPI and crete Tags and Releases\n\n## Example workflow\n\n**WARNING:** Do not enter any secrets in plain text! Add them as a env var in `settings/secrets/actions`.\n\nYou don't need to set `secrets.GITHUB_TOKEN` (its automatically set).\n\n```yml\nname: Publish\n\non:\n  push:\n    branches:\n      - main\n\npermissions:\n  contents: write\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout 🛎️\n        uses: actions/checkout@v5\n\n      - name: Set up Python 🧰\n        uses: actions/setup-python@v5\n        with:\n          python-version: 3.x\n\n      - name: Install dependencies 🧰\n        env:\n          PIP_ROOT_USER_ACTION: ignore\n        run: |\n          python -m pip install --upgrade pip\n          pip install build\n\n      - name: Build package 🔨\n        run: python -m build\n\n      - name: Publish package 🚀\n        uses: Commandcracker/pypi-publish@v1\n        with:\n          password: ${{ secrets.PYPI_API_TOKEN }}\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Inputs\n\n| Input              | Description                                       | Required | Default                                                                            |\n|--------------------|---------------------------------------------------|----------|------------------------------------------------------------------------------------|\n| `user`             | `PyPI user`                                       | `false`  | `__token__`                                                                        |\n| `password`         | `Password for the PyPI user or an access token`   | `true`   |                                                                                    |\n| `repository`       | `The repository URL for PyPI`                     | `false`  | `https://pypi.python.org/pypi`                                                     |\n| `verify_metadata`  | `Check distribution metadata before uploading`    | `false`  | `true`                                                                             |\n| `verbose`          | `Show verbose output.`                            | `false`  | `false`                                                                            |\n| `print_hash`       | `Show hash values of distribution to be uploaded` | `false`  | `true`                                                                             |\n| `add_hash`         | `Add hash values to release assets`               | `false`  | `true`                                                                             |\n| `github_token`     | `${{ secrets.GITHUB_TOKEN }}`                     | `true`   |                                                                                    |\n| `prefix`           | `Prefix to add to the version tag`                | `false`  |                                                                                    |\n| `suffix`           | `Suffix to add to the version tag`                | `false`  |                                                                                    |\n| `releases_message` | `Message for the release`                         | `false`  | `**View releases at**: [PyPI]({release_url})\\n**Full Changelog**: {changelog_url}` |\n\n## Releases Message Variables\n\nSet them like this: `{var_name}`\n\n| Variable          | Description                                                 |\n|-------------------|-------------------------------------------------------------|\n| `release_url`     | `{repository_url}project/{package_name}/{package_version}/` |\n| `changelog_url`   | `https://github.com/{github_repository}/compare/?...?`      |\n| `package_name`    | `Your package name`                                         |\n| `package_version` | `Your package version`                                      |\n| `prefix`          | `same as the prefix input`                                  |\n| `suffix`          | `same as the suffix input`                                  |\n| `tag_name`        | `{prefix}{package_version}{suffix}`                         |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommandcracker%2Fpypi-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommandcracker%2Fpypi-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommandcracker%2Fpypi-publish/lists"}