From 1e3e0835a9c28306cf509f2a3390c276379c70f2 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Sun, 6 Nov 2022 15:41:42 -0500 Subject: [PATCH] ci(testing-data): Remove Pinata pinning The add algorithm is not the same as web3.storage. --- .github/workflows/javascript-typescript.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.github/workflows/javascript-typescript.yml b/.github/workflows/javascript-typescript.yml index a3d720a24..53bfa1325 100644 --- a/.github/workflows/javascript-typescript.yml +++ b/.github/workflows/javascript-typescript.yml @@ -74,24 +74,3 @@ jobs: git config --global user.name "GitHub Actions" git config --global user.email "itk+community@discourse.itk.org" npx semantic-release - - - name: Setup ipfs - uses: ibnesayeed/setup-ipfs@master - with: - ipfs_version: ^0.8 - - - name: Pin testing data - if: github.ref == 'refs/heads/master' - env: - PINATA_JWT: ${{ secrets.PINATA_JWT }} - run: | - mkdir itk-wasm-testing-data - rsync -v -r --exclude=Objects --exclude='*-hash-stamp' ./build-emscripten/ExternalData/ ./itk-wasm-testing-data/ - new_cid=$(ipfs add -r -Q --cid-version 1 --raw-leaves itk-wasm-testing-data) - - ipfs pin remote service add pinata https://api.pinata.cloud/psa "$PINATA_JWT" - if test $(ipfs pin remote ls --service=pinata --name=itk-wasm-testing-data --cid=$new_cid | wc -l) -lt 1; then - ipfs pin remote add --service=pinata --name=itk-wasm-testing-data $new_cid - else - echo "CID ${new_cid} already pinned on Pinata." - fi