Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/actions/publish/action.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
- uses: ./.github/actions/build
id: build

- uses: ./.github/actions/publish
- name: Publish package distributions to PyPI
if: ${{ inputs.dry_run == false }}
uses: pypa/gh-action-pypi-publish@release/v1
Copy link

Choose a reason for hiding this comment

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

FYI, the security recommendation is to have this in a dedicated job and avoid giving elevated OIDC privileges to transitive build dependencies.

with:
token: ${{env.PYPI_AUTH_TOKEN}}
dry_run: ${{ inputs.dry_run }}
password: ${{env.PYPI_AUTH_TOKEN}}
Copy link

Choose a reason for hiding this comment

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


release-provenance:
needs: [ 'build-publish' ]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
- uses: ./.github/actions/build-docs
if: ${{ steps.release.outputs.releases_created == 'true' }}

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

release-provenance:
needs: [ 'release-package' ]
Expand Down