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