Skip to content
upload

GitHub Action

Crust IPFS Upload

v2.0.5 Latest version

Crust IPFS Upload

upload

Crust IPFS Upload

Upload your site to IPFS W3Auth Gateway

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Crust IPFS Upload

uses: crustio/[email protected]

Learn more about this action in crustio/ipfs-upload-action

Choose a version

Crust IPFS Upload action

This action upload your website to IPFS through IPFS W3Auth Gateway

Inputs

path

Required Path to directory sent to IPFS

seeds

Required Substrate-based chain secret seeds, which support:

  • Crust: Please go to Crust Apps to get seeds
  • Polkadot: Please go to Polkadot Apps to get seeds
  • Kusama: Please go to Kusama Apps to get seeds
  • More substrate based chains

gateway

Optional, IPFS Public Gateway which support W3Auth, default is https://crustipfs.xyz

params

Optional, IPFS /api/v0/add Arguments

example:

params: pin=true&cid-version=1

Outputs

hash

string, Uploaded IPFS cid hash value.

Example usage

uses: crustio/[email protected]
with:
  path: './build'
  seeds: ${{ secrets.SUBSTRATE_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