IPFS Pinning GitHub Action
Learn how to configure the IPFS Pinning GitHub Action for use with Filebase.
Last updated
Learn how to configure the IPFS Pinning GitHub Action for use with Filebase.
Last updated
IPFS Pinning GitHub Action is an open-source GitHub Action that enables developers to configure automatic backups for their GitHub repositories to an IPFS Pinning Service like Filebase whenever their GitHub repository’s main branch is pushed or updated by a pull request.
The GitHub repo for this action can be found here.
Read below to learn how to use IPFS Pinning GitHub Action with Filebase.
This tutorial uses the IPFS Pinning API, which is a paid feature that requires a Filebase IPFS Subscription.
FILEBASE_SECRET_KEY
. This value should be your Filebase IPFS API Secret Token.This token can be generated by navigating to the Filebase Access Keys page, then viewing the IPFS Pinning Service API Endpoint. Click the drop down menu for 'Choose Bucket to Generate Token', then choose the IPFS Filebase Bucket you want to use.
Then copy the generated Secret Access Token:
main.yml
:Replace the following values to match your configuration:
path_to_add: The path to the files or folders in your GitHub repository you would like to upload to Filebase.
pin_name: A name to be associated with your file’s CID once pinned to IPFS.
The output of this action will be your file or folder’s IPFS CID value.
main.yml
file listed in your repository.Select the ‘Actions’ tab from the menu bar again to check the status of the GitHub action, which was run automatically when it was committed. From here, it will be run automatically whenever the main branch of your repository is pushed to or merged with a pull request.