{"repo":"storacha/add-to-web3","free":true,"listed":false,"github":"https://github.com/storacha/add-to-web3","clone":"git clone https://github.com/storacha/add-to-web3.git","description":"⁂ Github Action to upload files to web3.storage","language":null,"stars":56,"topics":["web3","ipfs","filecoin","deploy"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"add-to-web3 Upload files to Storacha from a Github Action, and output the IPFS Content ID. A lightweight wrapper around [the Storacha CLI tool]. As a composite github action all it does is configure and call the cli for you. See the steps in ./action.yml. Usage Generating a secret key and proof On your dev machine, use [the Storacha CLI tool] to generate a secret key and proof to allow this action to upload to a space. Install it from npm and login as described here docs.storacha.network/quickstart then create a key like this: Keep the key safe. Save it as a secret on your repo. Copy the did for use in the next command. The output is a base64 encoded ucan proof that delegates capabilities to space/blob/add , space/index/add , filecoin/offer , and upload/add on your current space to the key generated above. The capabilies space/blob/add , space/index/add , filecoin/offer , and upload/add are the minimum required to upload files to web3.storage. This proof will not allow that key to list uploads in this space for example. To recap: - Use the key value from the output of storacha key create --json as the secret key for this action. - Use the did value from that output as the audience for storacha delegation create shown above. - Use the output of storacha delegation create --base64 as the proof for this action. Inputs path to add Required The path the root directory of your static website or other content that you want to publish to IPFS. secret key Required The base64 encoded k","default_branch":null,"files":null,"tree":[],"storefront":"/r/storacha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/storacha/add-to-web3/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}