From dc657d6e190c03aa9994d4b0478954088241e014 Mon Sep 17 00:00:00 2001 From: Scott Huberty Date: Wed, 27 Mar 2024 15:02:16 -0700 Subject: [PATCH] DOC: deploy to gh-pagse - lets see if this works... --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 026e259..be27536 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -50,6 +50,29 @@ jobs: - persist_to_workspace: root: docs/_build paths: html + + docs-deploy: + 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 gh-pages@2.0.1 + git config user.email "seh33@uw.edu" + git config user.name "ci-build" + - add_ssh_keys: + fingerprints: + - "SHA256:BqtEi30deZOKQxP97ukUkNTsg5zHwEc6wjbTQciNu5U" + - run: + name: Deploy docs to gh-pages branch + command: gh-pages --dotfiles --message "[skip ci] Updates" --dist docs/_build/html workflows: version: 2 @@ -57,3 +80,10 @@ workflows: jobs: - test - build-docs + - docs-deploy: + requires: + - test + - docs-build + filters: + branches: + only: main