Skip to content

Commit

Permalink
ci(circleci): setup deploy-docs job
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Nov 17, 2023
1 parent babc475 commit 68ba4ec
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
command: pre-commit run --all-files

build-docs:
description: "Build docs check (the actual publishing is handled by .readthedocs.yaml)"
description: "Build docs"
executor:
name: docker-executor
steps:
Expand All @@ -68,6 +68,32 @@ jobs:
- run:
name: Run Sphinx
command: poetry run inv docs.build
- persist_to_workspace:
root: docs/_build
paths: [html]

deploy-docs:
docker:
- image: node:8.10.0
steps:
- checkout
- attach_workspace:
at: docs/_build
- run:
name: Disable jekyll builds
command: touch docs/_build/html/.nojekyll
- run:
name: Install and configure dependencies
command: |
npm install -g --silent [email protected]
git config user.email "[email protected]"
git config user.name "airflow-oss-bot"
- add_ssh_keys:
fingerprints:
- 26:04:e6:0d:ce:4c:79:c4:e6:46:62:3f:fa:4e:d2:33
- run:
name: Deploy docs to gh-pages branch
command: gh-pages --dotfiles --message "[skip ci] Updates" --dist docs/_build/html

workflows:
tests:
Expand All @@ -82,3 +108,6 @@ workflows:
<<: *all_branches_and_version_tag
- build-docs:
<<: *all_branches_and_version_tag
- deploy-docs:
requires:
- build-docs

0 comments on commit 68ba4ec

Please sign in to comment.