From 6a94ad68042002ee5c1440f7c9520e3748c01f5f Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Mon, 27 Jan 2025 14:03:31 +0000 Subject: [PATCH] Replaced NIU upload action with separate steps --- .github/workflows/test_and_deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index eabd6b9..1f472f9 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -124,8 +124,14 @@ jobs: upload_all: name: Publish build distributions needs: [build_sdist_wheels] + if: github.event_name == 'push' && github.ref_type == 'tag' runs-on: ubuntu-latest steps: - - uses: neuroinformatics-unit/actions/upload_pypi@v2 + - uses: actions/download-artifact@v4 + with: + name: artifact + path: dist + - uses: pypa/gh-action-pypi-publish@v1.12.3 with: - secret-pypi-key: ${{ secrets.TWINE_API_KEY }} + user: __token__ + password: ${{ secrets.TWINE_API_KEY }}