Skip to content

Commit 08816a8

Browse files
committed
chore: Fix broken pypi publish action
According to [this GitHub issue][1], the `pypa/gh-action-pypi-publish` action cannot be used in nested actions. This commit inlines the usage of this action into the top-level workflows instead. [1]: pypa/gh-action-pypi-publish#299
1 parent f442e58 commit 08816a8

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

.github/actions/publish/action.yml

-18
This file was deleted.

.github/workflows/manual-publish.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
- uses: ./.github/actions/build
3636
id: build
3737

38-
- uses: ./.github/actions/publish
38+
- name: Publish package distributions to PyPI
39+
if: ${{ inputs.dry_run == false }}
40+
uses: pypa/gh-action-pypi-publish@release/v1
3941
with:
40-
token: ${{env.PYPI_AUTH_TOKEN}}
41-
dry_run: ${{ inputs.dry_run }}
42+
password: ${{env.PYPI_AUTH_TOKEN}}
4243

4344
release-provenance:
4445
needs: [ 'build-publish' ]

.github/workflows/release-please.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
- uses: ./.github/actions/build-docs
4848
if: ${{ steps.release.outputs.releases_created == 'true' }}
4949

50-
- uses: ./.github/actions/publish
50+
- name: Publish package distributions to PyPI
5151
if: ${{ steps.release.outputs.releases_created == 'true' }}
52+
uses: pypa/gh-action-pypi-publish@release/v1
5253
with:
53-
token: ${{env.PYPI_AUTH_TOKEN}}
54-
dry_run: false
54+
password: ${{env.PYPI_AUTH_TOKEN}}
5555

5656
release-provenance:
5757
needs: [ 'release-package' ]

0 commit comments

Comments
 (0)