diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 237b998ee3a..c16b2124603 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -64,35 +64,11 @@ jobs: test-pypi-publish: needs: - build - runs-on: ubuntu-latest - permissions: - # This permission is used for trusted publishing: - # https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ - # - # Trusted publishing has to also be configured on PyPI for each package: - # https://docs.pypi.org/trusted-publishers/adding-a-publisher/ - id-token: write - - steps: - - uses: actions/checkout@v4 - - - uses: actions/download-artifact@v3 - with: - name: dist - path: ${{ inputs.working-directory }}/dist/ - - - name: Publish to test PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: ${{ inputs.working-directory }}/dist/ - verbose: true - print-hash: true - repository-url: https://test.pypi.org/legacy/ - - # We overwrite any existing distributions with the same name and version. - # This is *only for CI use* and is *extremely dangerous* otherwise! - # https://github.com/pypa/gh-action-pypi-publish#tolerating-release-package-file-duplicates - skip-existing: true + uses: + ./.github/workflows/_test_release.yml + with: + working-directory: ${{ inputs.working-directory }} + secrets: inherit pre-release-checks: needs: