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 46 forks source link

Pin to 'Infura IPFS' project #21

Closed ss-o closed 3 years ago

ss-o commented 3 years ago

Hi,

Could you advise on the difference between a regular Infura IPFS pin and a pin to a personal Infura IPFS project?

I planned to do something similar to:

uses: aquiladev/ipfs-action@v1
with:
  path: ./build
  service: infura
  pinataKey: ${{ secrets.PROJECT_ID }}
  pinataSecret: ${{ secrets.PROJECT_SECRET }}

But got confused as unable to find info on differences (limits, sizes, etc.). Does it worth pinning to the personal project?

aquiladev commented 3 years ago

You misconfigured the action a bit, it might be the reason of wrong understanding.

Infura does not require any keys or secrets. You can use it for free/unauthorized Pinata does require key and secret, you need to register a user in pinata service in order to use it. In your configuration you choose infura service with pinata parameters. In the case parameters will be ignored.

it is the same as

uses: aquiladev/ipfs-action@v1
with:
  path: ./build
  service: infura
ss-o commented 3 years ago

"> Infura does not require any keys or secrets. You can use it for free/unauthorized" - this part confuses me, I thought Infura should have limits as a pinata limited to 1GB.

I followed these docs and though it has some kind of benefits when pinning to personal projects. https://infura.io/docs/ipfs#section/Authentication/Using-NodeJS

Or

curl -X POST "https://ipfs.infura.io:5001/api/v0/pin/add?arg=<ipfs-path>&progress=<value>"
curl -X POST -u "PROJECT_ID:PROJECT_SECRET" \
"https://ipfs.infura.io:5001/api/v0/pin/add?arg=QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn"

So I thought to contribute to this project by adding the ability to pin as mentioned previously.

Thank you for your reply.

aquiladev commented 3 years ago

I'll investigate this part, thank you for the information