Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: deploy documentation on releases #629

Merged
merged 6 commits into from
Dec 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,29 @@ jobs:
- run:
name: Docs tests
command: yarn docs-test
- persist_to_workspace:
root: packages/opentelemetry-types/docs
paths:
- out
docs-deploy:
docker:
- image: node:12
steps:
- checkout
- attach_workspace:
at: packages/opentelemetry-types/docs
- run:
name: Install and configure dependencies
command: |
npm install -g --silent gh-pages@2.0.1
git config user.email dyladan@users.noreply.github.com
dyladan marked this conversation as resolved.
Show resolved Hide resolved
git config user.name "ci-build"
- add_ssh_keys:
fingerprints:
- "1d:a3:60:b5:b4:8d:e7:8a:96:ce:6a:0a:e9:58:4c:54"
- run:
name: Deploy docs to gh-pages branch
command: gh-pages --dist packages/opentelemetry-types/docs/out
dyladan marked this conversation as resolved.
Show resolved Hide resolved
node8:
docker:
- image: node:8
Expand Down Expand Up @@ -202,7 +225,18 @@ workflows:
version: 2
build:
jobs:
- lint_&_docs
- lint_&_docs:
filters:
branches:
only: /.*/
- docs-deploy:
requires:
- lint_&_docs
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
dyladan marked this conversation as resolved.
Show resolved Hide resolved
branches:
ignore: /.*/
- node8
- node10
- node12
Expand Down