Skip to content

Commit f5be3d8

Browse files
author
Daniel Dyla
committed
chore: build docs in circle ci
1 parent 1975647 commit f5be3d8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.circleci/config.yml

+28
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ jobs:
6868
- run:
6969
name: Docs tests
7070
command: yarn docs-test
71+
- persist_to_workspace:
72+
root: packages/opentelemetry-types/docs
73+
paths: out
74+
docs-deploy:
75+
docker:
76+
- image: node:12
77+
steps:
78+
- checkout
79+
- attach_workspace:
80+
at: packages/opentelemetry-types/docs
81+
- run:
82+
name: Install and configure dependencies
83+
command: |
84+
npm install -g --silent [email protected]
85+
git config user.email [email protected]
86+
git config user.name "ci-build"
87+
- add_ssh_keys:
88+
fingerprints:
89+
- "08:7b:ae:2d:8f:dd:a7:4e:ad:f6:44:cc:99:55:34:a1"
90+
- run:
91+
name: Deploy docs to gh-pages branch
92+
command: gh-pages --dist packages/opentelemetry-types/docs/out
7193
node8:
7294
docker:
7395
- image: node:8
@@ -95,6 +117,12 @@ workflows:
95117
jobs:
96118
- lint
97119
- docs
120+
- docs-deploy:
121+
requires:
122+
- docs
123+
filters:
124+
branches:
125+
only: master
98126
- node8
99127
- node10
100128
- node11

0 commit comments

Comments
 (0)