/ipfs-crust-action

Pin your site to Crust IPFS Network from Github Action

Primary LanguageJavaScriptMIT LicenseMIT

Crust IPFS pin action

Decentralized pin your site to Crust IPFS Network with Github Action

Inputs

cid

Required The cid value from IPFS.

seeds

Seeds is the private key of Crust Account, you can:

  1. Apply yourself by refering this doc
  2. Then, join Crust Discord Channel and can get free storage quota on 📦 free-storage channel

Required, Crust secret seeds, consist of 12 words. And you need to make sure you have CRUs in your account to send the transaction.

size

Optional, The cumulative size value from IPFS. Default 209715200 (200MB).

crust-endpoint

Optional, Crust websocket endpoint. Default 'wss://rpc.crust.network'.

Outputs

res

boolean, Pin successfully or failed.

Example usage

uses: crustio/ipfs-crust-action@v2.0.6
with:
  cid: QmevJf2rdNibZCGrgeyVJEM82y5DsXgMDHXM6zBtQ6G4Vj
  seeds: ${{ secrets.CRUST_SEEDS }}

Contribution

Feel free to dive in! Open an issue or send a PR.

To contribute to Crust in general, see the Contribution Guide

License

MIT @Crust Network