Unverified Commit a5b81850 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #342 from ethereum/publishToIpfs

Publish to ipfs
parents c7e4e394 0eb57c90
......@@ -189,7 +189,7 @@ jobs:
- store_artifacts:
path: ./apps/remix-ide/reports/screenshots
publish-docker:
publish:
docker:
# specify the version you desire here
- image: circleci/node:10.19.0-buster
......@@ -213,6 +213,7 @@ jobs:
- run: npm run downloadsolc_root
- run: npm run build
- run: ./apps/remix-ide/ci/build_and_publish_docker_images.sh
- run: ./apps/remix-ide/ci/publishIpfs
deploy-remix-alpha:
docker:
......@@ -260,7 +261,7 @@ workflows:
- remix-ide-run-deploy:
requires:
- remix-libs
- publish-docker:
- publish:
requires:
- remix-ide-chrome
- remix-ide-firefox
......
#!/usr/bin/env node
const ipfsClient = require('ipfs-http-client')
console.log('current folder', process.cwd())
const folder = process.cwd() + '/temp_publish_docker';
(async () => {
const host = 'ipfs.komputing.org' // ethdev berlin ipfs node
const ipfs = ipfsClient({ host, port: 443, protocol: 'https' })
try {
let result = await ipfs.addFromFs(folder, { recursive: true, pin: false })
const remoteFolder = result[result.length - 1]
console.log('ipfs://' + remoteFolder.hash)
console.log('https://ipfsgw.komputing.org/ipfs/' + remoteFolder.hash)
console.log('https://gateway.ipfs.io/ipfs/' + remoteFolder.hash)
} catch (e) {
console.log(e)
}
})()
This diff is collapsed.
......@@ -205,6 +205,7 @@
"fast-levenshtein": "^2.0.6",
"ganache-cli": "^6.8.1",
"gists": "^1.0.1",
"ipfs-http-client": "35.1.1",
"ipfs-mini": "^1.1.5",
"is-electron": "^2.2.0",
"javascript-serialize": "^1.6.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment