File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 32
32
- run : yarn run test
33
33
- run : yarn run lint
34
34
- run : yarn run codacy
35
+ - persist_to_workspace :
36
+ root : ~/diff2html
37
+ paths :
38
+ - docs
39
+ - dist
35
40
36
41
build-node_4 :
37
42
<< : *common-build
68
73
docker :
69
74
- image : node:10
70
75
76
+ deploy :
77
+ machine :
78
+ enabled : true
79
+ working_directory : ~/diff2html
80
+ steps :
81
+ - attach_workspace :
82
+ at : .
83
+ - run :
84
+ name : Prepare website sources
85
+ command : |
86
+ rm -f docs/assets
87
+ mv dist docs/assets
88
+ - run :
89
+ name : Deploy
90
+ working_directory : ~/diff2html/docs
91
+ command : aws s3 sync . s3://diff2html.rtfpessoa.xyz --region eu-west-1
92
+
71
93
workflows :
72
94
version : 2
73
95
build :
@@ -79,3 +101,9 @@ workflows:
79
101
- build-node_8
80
102
- build-node_9
81
103
- build-node_10
104
+ - deploy :
105
+ requires :
106
+ - build-node_10
107
+ filters :
108
+ branches :
109
+ only : master
You can’t perform that action at this time.
0 commit comments