pypa / gh-action-pypi-publish

The blessed :octocat: GitHub Action, for publishing your :package: distribution files to PyPI, the tokenless way: https://github.com/marketplace/actions/pypi-publish
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
BSD 3-Clause "New" or "Revised" License
930 stars 87 forks source link

Unable to use v1.12.0 on Github Enterprise #292

Closed zerola closed 2 days ago

zerola commented 2 days ago

Hi, version v1.12.0 is unable to work on Github Enterprise.

error

I believe the checkout step which tries to checkout the action itself is cloning it from the local Github Enterprise server, where the action doesn't exist (instead of public GitHub): https://github.com/pypa/gh-action-pypi-publish/blob/release/v1/action.yml#L138

webknjaz commented 2 days ago

Thanks for the report!

cc @br3ndonland

webknjaz commented 2 days ago

@zerola please try pinning to pypa/gh-action-pypi-publish@unstable/v1 or pypa/gh-action-pypi-publish@0a87186d5f9e2303ed3c19e0fdd59abe52a28bb7 and report back. These contain the fix from #293 that I haven't yet tagged.

zerola commented 2 days ago

@webknjaz I confirm the pypa/gh-action-pypi-publish@unstable/v1 works within Github Enterprise. Thank you!

webknjaz commented 2 days ago

Great, thanks for verifying!

webknjaz commented 2 days ago

The fix is now released as a part of v1.12.1: https://github.com/pypa/gh-action-pypi-publish/discussions/296.