Merge pull request #2468 from ethereum/yann300-patch-41

Update publishIpfs
pull/5370/head
bunsenstraat 3 years ago committed by GitHub
commit abcde134a7
  1. 4
      apps/remix-ide/ci/publishIpfs

@ -5,8 +5,8 @@ const { globSource } = IpfsHttpClient
const folder = process.cwd() + '/dist/apps/remix-ide'; const folder = process.cwd() + '/dist/apps/remix-ide';
(async () => { (async () => {
const host = 'ipfs.remixproject.org' const host = 'ipfs.infura.io'
const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' }) const ipfs = IpfsHttpClient({ host, port: 5001, protocol: 'https' })
try { try {
let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false }) let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false })
const hash = result.cid.toString() const hash = result.cid.toString()

Loading…
Cancel
Save