message: use separate job to upload
diff: @@ -69,15 +69,6 @@ jobs:
  name: "linux-${{ matrix.python }}"
  path: connector-agent-python/dist/*.whl
  - - name: Upload to PyPI test site
  - env:
  - PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
  - run: |
  - cd connector-agent-python
  - poetry run twine upload --non-interactive --repository-url https://test.pypi.org/legacy/ -u __token__ -p $PYPI_TEST_TOKEN dist/*.whl
  -
  -
  -
  darwin:
  runs-on: macos-10.15
  strategy:
  @@ -148,15 +139,6 @@ jobs:
  name: "darwin-${{ matrix.python }}"
  path: connector-agent-python/dist/*.whl
  - - name: Upload to PyPI test site
  - env:
  - PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
  - run: |
  - eval "$(pyenv init -)"
  - eval "$(pyenv virtualenv-init -)"
  - cd connector-agent-python
  - poetry run twine upload --non-interactive --repository-url https://test.pypi.org/legacy/ -u __token__ -p $PYPI_TEST_TOKEN dist/*.whl
  -
  win32:
  runs-on: windows-latest
  strategy:
  @@ -221,25 +203,21 @@ jobs:
  name: "win32-${{ matrix.python }}"
  path: connector-agent-python/dist/*.whl
  + upload:
  + runs-on: ubuntu-latest
  + needs: [win32, darwin, linux]
  + steps:
  + - name: Download all rtifacts
  + uses: actions/download-artifact@v2
  +
  + - name: Show downloaded artifacts
  + run: tree .
  +
  + - name: Install Twine
  + run: pip install twine
  +
  - name: Upload to PyPI test site
  env:
  PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
  run: |
  - cd connector-agent-python
  - Get-ChildItem "dist" -Filter *.whl |
  - foreach {
  - poetry run twine upload -- --non-interactive --repository-url https://test.pypi.org/legacy/ -u __token__ -p $PYPI_TEST_TOKEN $_.FullName
  - }
  -
  - # upload:
  - # runs-on: ubuntu-latest
  - # steps:
  - # - name: Download artifacts
  - # uses: actions/upload-artifact@v2
  - # with:
  - # name: "win32-${{ matrix.python }}"
  - # path: connector-agent-python/dist/*.whl
  -
  - # - name: Download artifacts
  - # run: |
  - # twine upload --repository-url https://test.pypi.org/legacy/ dist/*
  \ No newline at end of file
  + twine upload --non-interactive --repository-url https://test.pypi.org/legacy/ -u __token__ -p $PYPI_TEST_TOKEN **/*.whl
  \ No newline at end of file
  