Releases: ipfs-shipyard/ipfs-github-action
v2.1.1
Full Changelog: v2.1.0...v2.1.1
v2.1.0
Fixes
- Pass
--wait
flag toipfs-cluster-ctl
when adding to ensure that the files are pinned and replicated before returning the root cid. - Pass a valid https url for the cluster as the
target_url
on the call to the github commit statuts api. - Use a versioned tag of the ipfs-dns-deploy docker image.
v2.0.0
Publish 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.
Changes from v1
Switched to cid-in-subdomain preview URLs.
Action Version | Default IPFS Preview URL |
---|---|
v1 | https://ipfs.io/ipfs/QmZULkCELmmk5XNfCgTnCyFgAVxBRBXyDHGGMVoLFLiXEN |
v2 | https://bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am.ipfs.dweb.link |
- Output v1 CIDs
- Use cid-in-subdomain style gateway urls
- Default ipfs gateway is now dweb.link... which is also hosted on the public ipfs.io gateway, but is configured for cid-in-subdomain urls.
- Output the preview
url
for fetching the cid via the gateway. It is set as the IPFS status on the commit, but the url wasn't previously available to other steps in the workflow, only thecid
was. - Pin to the cluster node that recieves the request which can be faster for large datasets.
ipfs cid-in-subdomain gateways are preferred now as they preserve the origin isolation of each site by using the cid as part of the domain. Each root is isloated from every other root. It means your site is mounted on / rather than /ipfs so root-relative urls will still work too, which is a big deal.
If you'd prefer to use /ipfs/ style preview urls, then v1 of this action is the one for you! See: https://github.com/ipfs-shipyard/ipfs-github-action/releases/tag/v1.0.0