[b4808a]: / .circleci / config.yml

Download this file

57 lines (52 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Tagging a commit with [circle front] will build the front page and perform test-doc.
# Tagging a commit with [circle full] will build everything.
version: 2.1
parameters:
github-artifact-url:
type: string
default: "none"
jobs:
fetch_docs_from_github:
docker:
- image: circleci/python:3.7
environment:
GITHUB_ARTIFACT_URL: << pipeline.parameters.github-artifact-url >>
steps:
- run:
name: Download some docs
command: |
echo "Show Github artifact url"
echo $GITHUB_ARTIFACT_URL
wget -O HTML-docs.zip $GITHUB_ARTIFACT_URL
ls -ahl .
unzip HTML-docs.zip -d downloaded_docs
ls -ahl .
# Save the outputs
- store_artifacts:
path: downloaded_docs/html/
destination: dev
- persist_to_workspace:
root: downloaded_docs
paths:
- html
dummy_job:
docker:
- image: circleci/python:3.7
steps:
- run:
name: Dummy echo
command: |
echo "Do nothing..."
workflows:
version: 2.1
default:
when:
not:
equal: [ "none", << pipeline.parameters.github-artifact-url >> ]
jobs:
- fetch_docs_from_github
dummy_workflow:
when:
equal: [ "none", << pipeline.parameters.github-artifact-url >> ]
jobs:
- dummy_job