1- name : Sync github release assets with dist.ipfs.io
1+ name : Sync github release assets with dist.ipfs.tech
22
33on :
44 workflow_dispatch :
@@ -10,7 +10,7 @@ concurrency:
1010 cancel-in-progress : true
1111
1212jobs :
13- sync-github-and-dist-ipfs-io :
13+ sync-github-and-dist-ipfs-tech :
1414 if : github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
1515 runs-on : " ubuntu-latest"
1616 steps :
5050 github_assets.add(asset.name)
5151 }
5252
53- // fetch asset info from dist.ipfs.io
54- p = '/ipns/dist.ipfs.io /kubo/' + release.tag_name
53+ // fetch asset info from dist.ipfs.tech
54+ p = '/ipns/dist.ipfs.tech /kubo/' + release.tag_name
5555 let stdout = ''
5656 const options = {}
5757 options.listeners = {
@@ -74,20 +74,20 @@ jobs:
7474 }
7575 }
7676
77- // if dist.ipfs.io has files not found in github, copy them over
77+ // if dist.ipfs.tech has files not found in github, copy them over
7878 for (const file of missing_files) {
7979 file_sha = file + ".sha512"
8080 file_cid = file + ".cid"
8181
8282 // skip files that don't have .cid and .sha512 checksum files
8383 if (!dist_assets.has(file_sha) || !dist_assets.has(file_cid)) {
8484 if (!file.endsWith('.cid') && !file.endsWith('.sha512')) { // silent skip of .sha512.sha512 :)
85- console.log(`skipping "${file}" as dist.ipfs.io does not provide .cid and .sha512 checksum files for it`)
85+ console.log(`skipping "${file}" as dist.ipfs.tech does not provide .cid and .sha512 checksum files for it`)
8686 }
8787 continue
8888 }
8989
90- console.log("fetching", file, "from dist.ipfs.io ")
90+ console.log("fetching", file, "from dist.ipfs.tech ")
9191 await exec.exec('ipfs', ['get', p + '/' + file])
9292 await exec.exec('ipfs', ['get', p + '/' + file_sha])
9393 await exec.exec('ipfs', ['get', p + '/' + file_cid])
0 commit comments