File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ docker :
5
+ - image : circleci/node:10.15.1-browsers
6
+ environment :
7
+ NO_SANDBOX : true
8
+ steps :
9
+ - checkout
10
+ - run :
11
+ command : npm ci
12
+ - run :
13
+ command : npm run lint
14
+ - run :
15
+ command : npm run build
16
+ - persist_to_workspace :
17
+ root : .
18
+ paths :
19
+ - dist
20
+
21
+ deploy :
22
+ docker :
23
+ - image : olizilla/ipfs-dns-deploy:latest
24
+ environment :
25
+ DOMAIN : dag.ipfs.io
26
+ BUILD_DIR : dist
27
+ steps :
28
+ - attach_workspace :
29
+ at : /tmp/workspace
30
+ - run :
31
+ name : Deploy website to IPFS
32
+ command : |
33
+ pin_name="$DOMAIN build $CIRCLE_BUILD_NUMBER"
34
+
35
+ hash=$(pin-to-cluster.sh "$pin_name" /tmp/workspace/$BUILD_DIR)
36
+
37
+ echo "Website added to IPFS: https://ipfs.io/ipfs/$hash"
38
+
39
+ # no domain yet.
40
+ # if [ "$CIRCLE_BRANCH" == "master" ] ; then
41
+ # dnslink-dnsimple -d $DOMAIN -r _dnslink -l /ipfs/$hash
42
+ # fi
43
+
44
+ workflows :
45
+ version : 2
46
+ build-deploy :
47
+ jobs :
48
+ - build
49
+ - deploy :
50
+ context : ipfs-dns-deploy
51
+ requires :
52
+ - build
Original file line number Diff line number Diff line change 16
16
},
17
17
"scripts" : {
18
18
"start" : " parcel src/index.html" ,
19
- "build" : " parcel build src/index.html"
19
+ "build" : " parcel build src/index.html" ,
20
+ "lint" : " standard"
20
21
},
21
22
"keywords" : [],
22
23
"author" : " " ,
You can’t perform that action at this time.
0 commit comments