8000 store artifacts as last build step for easy retrieval with CircleCI API · cartologic/plotly.js@d1806f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1806f8

Browse files
committed
store artifacts as last build step for easy retrieval with CircleCI API
1 parent 243ed88 com
8000
mit d1806f8

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.circleci/config.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ jobs:
3333
command: |
3434
npm run pretest
3535
npm run cibuild
36-
- store_artifacts:
37-
path: build/plotly.js
38-
destination: /plotly.js
3936
- save_cache:
4037
paths:
4138
- node_modules
@@ -123,6 +120,19 @@ jobs:
123120
name: Run syntax tests
124121
command: ./.circleci/test.sh syntax
125122

123+
publish:
124+
working_directory: ~/plotly.js
125+
steps:
126+
- store_artifacts:
127+
path: build/plotly.js
128+
destination: /plotly.js
129+
- store_artifacts:
130+
path: dist/plotly.min.js
131+
destinatin: /plotly.min.js
132+
- store_artifacts:
133+
path: dist/plot-schema.json
134+
destination: /plot-schema.json
135+
126136
workflows:
127137
version: 2
128138
build-and-test:
@@ -143,3 +153,6 @@ workflows:
143153
- test-syntax:
144154
requires:
145155
- build
156+
- publish:
157+
requires:
158+
- build

0 commit comments

Comments
 (0)
0