在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs-shipyard/ipfs-github-action开源软件地址:https://github.com/ipfs-shipyard/ipfs-github-action开源编程语言:Shell 94.8%开源软件介绍:IPFS GitHub ActionPublish websites to IPFS as part of a github action workflow. This action pins a directory to IPFS by using the ipfs-cluster-ctl command to pin it to a remote IPFS Cluster. It sets the IPFS URL as a status on the commit that triggered the action, allowing easy previewing of rendered static sites on the dweb. NOTE: You need to provide credentials to an IPFS cluster instance that you have permission to pin to, in order to make use of this action. This action uses https://github.com/ipfs-shipyard/ipfs-dns-deploy to do the work. UsageUse this action from a workflow that build out your static site to a directory. In this example we ask ipfs-github-action to pin the - uses: ipfs-shipyard/ipfs-github-action@v2
id: ipfs
with:
path_to_add: public
cluster_host: /dnsaddr/cluster.ipfs.io
cluster_user: ${{ secrets.CLUSTER_USER }}
cluster_password: ${{ secrets.CLUSTER_PASSWORD }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# "bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am"
- run: echo /ipfs/${{ steps.ipfs.outputs.cid }}
# https://bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am.ipfs.dweb.link
- run: echo ${{ steps.ipfs.outputs.url }} Check the filecoin spec website workflow for a complete example out in the wild that also updates a DNSLink record when with the new cid when a commit changes the production branch. Inputs
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论