@@ -8,6 +8,7 @@ name: Deploy
88
99# Explicitly declare permissions
1010permissions :
11+ actions : read
1112 contents : read
1213 pull-requests : write
1314 statuses : write
2627 runs-on : ubuntu-latest
2728 outputs :
2829 cid : ${{ steps.deploy.outputs.cid }}
30+ environment :
31+ name : ' ipfs-publish'
2932 steps :
3033 - name : Download build artifact
3134 uses : actions/download-artifact@v4
@@ -35,15 +38,37 @@ jobs:
3538 run-id : ${{ github.event.workflow_run.id }}
3639 github-token : ${{ github.token }}
3740
38- - name : Deploy to IPFS/Storacha
39- uses : ipfs /ipfs-deploy-action@v1
41+ - name : Deploy to IPFS
42+ uses : ipshipyard /ipfs-deploy-action@v1
4043 id : deploy
4144 with :
4245 path-to-deploy : ${{ env.BUILD_PATH }}
46+ cluster-url : " /dnsaddr/ipfs-websites.collab.ipfscluster.io"
47+ cluster-user : ${{ secrets.CLUSTER_USER }}
48+ cluster-password : ${{ secrets.CLUSTER_PASSWORD }}
49+ cluster-pin-expire-in : ${{ github.event.workflow_run.head_branch != 'main' && '2160h' || '' }}
4350 storacha-key : ${{ secrets.STORACHA_KEY }}
4451 storacha-proof : ${{ secrets.STORACHA_PROOF }}
4552 github-token : ${{ github.token }}
4653
54+ dnslink-update :
55+ runs-on : ubuntu-latest
56+ needs : deploy-ipfs
57+ if : github.event.workflow_run.head_branch == 'main'
58+ environment :
59+ name : ' cf-dnslink'
60+ url : " https://cid-ipfs-tech.ipns.inbrowser.link/"
61+ steps :
62+ - name : Update DNSLink
63+ uses : ipshipyard/dnslink-action@v1
64+ with :
65+ cid : ${{ needs.deploy-ipfs.outputs.cid }}
66+ dnslink_domain : ' cid-ipfs-tech.dnslinks.ipshipyard.tech'
67+ cf_zone_id : ${{ secrets.CF_DNS_ZONE_ID }}
68+ cf_auth_token : ${{ secrets.CF_DNS_AUTH_TOKEN }}
69+ github_token : ${{ github.token }}
70+ set_github_status : true
71+
4772 deploy-gh-pages :
4873 if : |
4974 github.event.workflow_run.conclusion == 'success' &&
0 commit comments