Skip to content

Commit 024319e

Browse files
committed
ci: re-enable docs deploy, enable circleci-artifact-retrieve bot
1 parent 5187258 commit 024319e

File tree

2 files changed

+34
-30
lines changed

2 files changed

+34
-30
lines changed

.circleci/artifact_path

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/0/tmp/gh-pages/docs/_build/no_version_html/index.html

.circleci/config.yml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
docs_deploy: &docs
22
docker:
33
- image: node:8.10.0
4+
working_directory: /tmp/gh-pages
45
steps:
5-
- add_ssh_keys:
6-
fingerprints:
7-
- "46:48:1e:6d:00:0e:f2:f8:e5:aa:b9:aa:da:eb:59:4e"
86
- run:
97
name: Check whether this is the original repo
108
command: |
119
if [[ "$CIRCLE_PROJECT_USERNAME" != "poldracklab" ]]; then
1210
echo "Not in poldracklab/sdcflows - skipping docs deploy."
1311
circleci step halt
1412
fi
13+
- add_ssh_keys:
14+
fingerprints:
15+
- "46:48:1e:6d:00:0e:f2:f8:e5:aa:b9:aa:da:eb:59:4e"
16+
- run:
17+
name: Install and configure dependencies
18+
command: |
19+
npm install -g --silent [email protected]
20+
git config user.email "[email protected]"
21+
git config user.name "Documentation Push"
1522
- checkout
1623
- attach_workspace:
1724
at: docs/_build
1825
- run:
1926
name: Disable jekyll builds
2027
command: touch docs/_build/html/.nojekyll
21-
- run:
22-
name: Install and configure dependencies
23-
command: |
24-
npm install -g --silent [email protected]
25-
git config user.email "[email protected]"
26-
git config user.name "ci-build"
2728
- run:
2829
name: Deploy docs to gh-pages branch
2930
command: gh-pages --dotfiles --message "doc(update) [skip ci]" --dist docs/_build/html
@@ -267,18 +268,11 @@ jobs:
267268
build_docs:
268269
docker:
269270
- image: python:3.7.4
271+
working_directory: /tmp/gh-pages
270272
environment:
271273
- FSLOUTPUTTYPE: NIFTI
272274
- SUBJECTS_DIR: /tmp/subjects
273275
steps:
274-
- restore_cache:
275-
keys:
276-
- docs-v1-{{ .Branch }}-{{ .Revision }}
277-
- docs-v1-{{ .Branch }}-
278-
- docs-v1-master
279-
- docs-v1-
280-
paths:
281-
- ./docs/_build/_html
282276
- checkout
283277
- run:
284278
name: Create subjects folder
@@ -295,17 +289,26 @@ jobs:
295289
- store_artifacts:
296290
path: ./docs/_build/no_version_html
297291
- run:
298-
name: Generate Versioned Docs
292+
name: Stop or generate versioned docs?
299293
command: |
300294
set +e
301295
force_versioned="$( git log --format=oneline -n 1 $CIRCLE_SHA1 | grep -i -E '\[docs?[ _]?versions?\]' )"
302296
set -e
303297
if [[ "x${CIRCLE_TAG}" = "x" && "${CIRCLE_BRANCH}" != "master" && "x${force_versioned}" = "x" ]]; then
304298
echo "Not a tag or master branch - skipping versioned docs."
305299
circleci step halt
306-
else
307-
make -f ./docs/Makefile versioned CURBRANCH=${CIRCLE_TAG:-$CIRCLE_BRANCH}
308300
fi
301+
- restore_cache:
302+
keys:
303+
- docs-v1-{{ .Branch }}-{{ .Revision }}
304+
- docs-v1-{{ .Branch }}-
305+
- docs-v1-master
306+
- docs-v1-
307+
paths:
308+
- ./docs/_build/_html
309+
- run:
310+
name: Generate Versioned Docs
311+
command: make -f ./docs/Makefile versioned CURBRANCH=${CIRCLE_TAG:-$CIRCLE_BRANCH}
309312
- save_cache:
310313
key: docs-v1-{{ .Branch }}-{{ .Revision }}
311314
paths:
@@ -531,16 +534,16 @@ workflows:
531534
tags:
532535
only: /.*/
533536

534-
# - deploy_docs_master:
535-
# requires:
536-
# - test_sdcflows
537-
# - test_package
538-
# - build_docs
539-
# filters:
540-
# branches:
541-
# only: /master/
542-
# tags:
543-
# ignore: /.*/
537+
- deploy_docs_master:
538+
requires:
539+
- test_sdcflows
540+
- test_package
541+
- build_docs
542+
filters:
543+
branches:
544+
only: /master/
545+
tags:
546+
ignore: /.*/
544547

545548
- deploy_docs_tag:
546549
requires:

0 commit comments

Comments
 (0)