Skip to content
box

GitHub Action

IPFS Remote Pinning

v1.1.0 Latest version

IPFS Remote Pinning

box

IPFS Remote Pinning

Pin your website to a IPFS Remote Pinning Service

Installation

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

              

- name: IPFS Remote Pinning

uses: alexanderschau/ipfs-pinning-action@v1.1.0

Learn more about this action in alexanderschau/ipfs-pinning-action

Choose a version

IPFS Pinning GitHub Action

hero image This GitHub Action helps you to publish your website/assets to IPFS Pinning Services (e.g. Pinata or Filebase using the official IPFS Remote Pinning API.

Usage

You can use this Action directly from your GitHub workflow. You can find the required credentials on your Pinning Services Website.

#/.github/workflows/main.yml
on: [push]

jobs:
  pin_to_ipfs:
    runs-on: ubuntu-latest
    name: Publish
    steps:
    - uses: actions/checkout@v2
    - name: IPFS Publish
      id: IPFS
      uses: alexanderschau/ipfs-pinning-action@v1.0.0
      with:
        path_to_add: 'your/path/' #Required
        endpoint: ${{ secrets.ENDPOINT }} #Required
        access_token: ${{ secrets.ACCESS_TOKEN }} #Required
        pin_name: 'github-actions-test' #Optional

Outputs

cid

Your content's IPFS content identifier e.g.

bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am

Contribute

If you have ideas to improve this action or found a bug, feel free to submit a PR or open an issue.

License

MIT © Alexander Schau