Skip to content

Fix: Change pypi-publish action from master to release/v1.13 - #48

Merged
HafeezOJ merged 5 commits into
mainfrom
47-bug-publish-to-pypi-workflow-fails-due-to-sunset-github-action
Nov 17, 2025
Merged

HafeezOJ merged 5 commits into
mainfrom
47-bug-publish-to-pypi-workflow-fails-due-to-sunset-github-action

Conversation

@HafeezOJ

Copy link
Copy Markdown
Contributor

Description

pypa/gh-action-pypi-publish@master has been sunset, which causes the workflow that publishes to PyPi to fail. This PR changes the action that publishes to PyPi in pypi-publish.yml from pypa/gh-action-pypi-publish@master to pypa/gh-action-pypi-publish@release/v1.13. It also removes the matrix strategy since the build has been tested with different pythons versions in python-package.yml and to avoid publishing the same version to PyPi multiple times.

Fixes
Change the action that publishes to PyPi in pypi-publish.yml from pypa/gh-action-pypi-publish@master to pypa/gh-action-pypi-publish@release/v1.13.

Screenshots or additional context

Not applicable

Testing (if applicable)

@HafeezOJ HafeezOJ linked an issue Nov 12, 2025 that may be closed by this pull request
1 task done
@HafeezOJ
HafeezOJ requested a review from zoidy November 12, 2025 18:39
@HafeezOJ HafeezOJ self-assigned this Nov 12, 2025

@zoidy zoidy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It seems like this whole workflow is obsolete. See the notes about PYPI_API_TOKEN and TEST_PYPI_API_TOKEN here https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/. Strongly recommend refactoring this workflow to future proof

zoidy
zoidy previously approved these changes Nov 13, 2025
zoidy
zoidy previously approved these changes Nov 14, 2025
@HafeezOJ
HafeezOJ merged commit 8d43fcf into main Nov 17, 2025
7 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.

Bug: Publish to pypi workflow fails due to sunset GitHub action

2 participants