aquiladev / ipfs-action

GitHub Action for upload to IPFS. Supports Pinata, Infura pinning service as well as direct upload.
https://dapps-delivery-guide.readthedocs.io/
MIT License
177 stars 44 forks source link

Multi-service support #1

Open aquiladev opened 4 years ago

aquiladev commented 4 years ago

It would be good to have multi-service support, besides default and custom endpoint. Take a look https://www.npmjs.com/package/ipfs-deploy

aquiladev commented 4 years ago

https://github.com/aquiladev/ipfs-action/commit/a5bcaecb8248f4d614b777e12f310df52a246790 Pinata service support

markg85 commented 4 years ago

Perhaps related, i'd very much like to pin it to multiple services in one script. So in my case to a IPFS node i'm running and to pinata.

aquiladev commented 4 years ago

@markg85 The issue is not related to simultaneous multi-service support. I think it is quite a rear case. You can solve it with multiple steps in your pipeline yaml. Something like:

    - name: Upload to IPFS
      uses: aquiladev/ipfs-action@v0.1.3
      with:
        path: ./build

    - name: Upload to Pinata
      uses: aquiladev/ipfs-action@v0.1.3
      with:
        path: ./build
        service: pinata
        pinataKey: ${{ secrets.PINATA_KEY }}
        pinataSecret: ${{ secrets.PINATA_SECRET }}
markg85 commented 4 years ago

Ohh, that's awesome! Thank you for that :)