diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bcd7ce0..21a4b0c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -101,3 +101,23 @@ jobs: with: name: wheels path: dist + + publish: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + needs: [sdist, macos, windows, linux] + environment: +# name: release + url: https://test.pypi.org/p/blended-dataset-loop + permissions: + id-token: write + steps: + - name: Download build artifact + uses: actions/download-artifact@v3 + with: + name: wheels + path: dist + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/