Skip to content

LumeWeb/pinner-deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinner Deploy Action

Deploy content to IPFS via Pinner in your GitHub Actions workflows.

Usage

Upload a directory

- uses: lumeweb/pinner-deploy-action@v0
  with:
    api-key: ${{ secrets.PINNER_API_KEY }}
    path: ./dist

Upload + IPNS publish

- uses: lumeweb/pinner-deploy-action@v0
  with:
    api-key: ${{ secrets.PINNER_API_KEY }}
    path: ./build
    ipns-key: my-app

Full deployment with domain + cleanup

- uses: lumeweb/pinner-deploy-action@v0
  with:
    api-key: ${{ secrets.PINNER_API_KEY }}
    path: ./build
    ipns-key: my-app
    domain: myapp.example.com
    remove-previous: true

Upload + domain + cleanup (no IPNS)

- uses: lumeweb/pinner-deploy-action@v0
  with:
    api-key: ${{ secrets.PINNER_API_KEY }}
    path: ./build
    domain: myapp.example.com
    remove-previous: true

Pin an existing CID

- uses: lumeweb/pinner-deploy-action@v0
  with:
    api-key: ${{ secrets.PINNER_API_KEY }}
    cid: QmExampleCID...

Inputs

Input Required Default Description
api-key Yes Pinner API key
path No Local directory or file to upload to IPFS
cid No Existing CID to pin (skip upload)
endpoint No https://ipfs.pinner.xyz Pinner API endpoint
ipns-key No IPNS key name or ID to publish under
domain No Domain for gateway website setup
remove-previous No false Remove previous pin after deploy. Requires "ipns-key" or "domain"

Either path or cid must be provided.

Outputs

Output Description
cid CID of the uploaded/pinned content
gateway-url Gateway URL for the content
ipns-name IPNS name if ipns-key was set
website-id Website ID if domain was set

About

Deploy content to IPFS via Pinner in your GitHub Actions workflows -- upload, pin, publish to IPNS, and set up websites

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Generated from actions/typescript-action