From fd6d1f1aae8fa3ccecb2b9cf88f350107738b7e2 Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Mon, 27 Jan 2025 14:23:11 +0000 Subject: [PATCH 1/2] Replaced NIU upload action with separate steps --- .github/workflows/test_and_deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index ea3eebe0..c82eb349 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -195,10 +195,15 @@ jobs: upload_all: name: Publish build distributions - needs: [build_sdist_wheel] + 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: - secret-pypi-key: ${{ secrets.TWINE_API_KEY }} + name: artifact + path: dist + - uses: pypa/gh-action-pypi-publish@v1.12.3 + with: + user: __token__ + password: ${{ secrets.TWINE_API_KEY }} From 9c8d2983ca72c96b40a0a6ada9eb04d8f8f48a1f Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Mon, 27 Jan 2025 14:24:57 +0000 Subject: [PATCH 2/2] Correct needs section --- .github/workflows/test_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index c82eb349..0a9e14d1 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -195,7 +195,7 @@ jobs: upload_all: name: Publish build distributions - needs: [build_sdist_wheels] + needs: [build_sdist_wheel] if: github.event_name == 'push' && github.ref_type == 'tag' runs-on: ubuntu-latest steps: