File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 61
61
source /tmp/env
62
62
docbuilder publish /tmp/workspace/artifacts/$CIRCLE_BRANCH_NO_SLASH iot-doc-builds $CIRCLE_PROJECT_REPONAME/$CIRCLE_BRANCH_NO_SLASH/$CIRCLE_SHA1
63
63
64
+ push_redirects_to_s3 :
65
+ executor : doc_builder
66
+ steps :
67
+ - checkout
68
+ - setup_aws_credentials
69
+ - write_env_variables
70
+ - *attach_workspace
71
+ - run :
72
+ name : Upload redirects.json to s3
73
+ command : |
74
+ source /tmp/env
75
+ docbuilder upload_file ~/project/redirects.json iot-doc-builds $CIRCLE_PROJECT_REPONAME/$CIRCLE_BRANCH_NO_SLASH/redirects.json
76
+
64
77
zip_documentation :
65
78
machine : true
66
79
steps :
73
86
- store_artifacts :
74
87
path : /tmp/workspace/docs.zip
75
88
89
+ list_pages :
90
+ machine : true
91
+ steps :
92
+ - write_env_variables
93
+ - *attach_workspace
94
+ - run :
95
+ name : List all built docs pages
96
+ command : |
97
+ source /tmp/env
98
+ cd /tmp/workspace/artifacts/$CIRCLE_BRANCH_NO_SLASH
99
+ find -maxdepth 2 -type f -name '*.html' -printf '%P\n'
100
+
76
101
make_live :
77
102
executor : doc_builder
78
103
steps :
@@ -92,9 +117,15 @@ workflows:
92
117
- publish_to_s3 :
93
118
requires :
94
119
- build
120
+ - push_redirects_to_s3 :
121
+ requires :
122
+ - build
95
123
- zip_documentation :
96
124
requires :
97
125
- build
126
+ - list_pages :
127
+ requires :
128
+ - build
98
129
# - await_approval:
99
130
# type: approval
100
131
# requires:
Original file line number Diff line number Diff line change
1
+ {
2
+
3
+ }
You can’t perform that action at this time.
0 commit comments