
We just lost the docs.o.o index page: The tox run failed and only a few files were ready. Since we delete existing content when pushing new, this removed all our static pages. Add a safe guard for all doc building: Only collect and publish documents when we have build them with success. Add this to related roles like creating/destroying afs as well. Change-Id: Ife2496fe920bd40d52803705b409e6e621532254
21 lines
630 B
YAML
21 lines
630 B
YAML
- hosts: all
|
|
roles:
|
|
- fetch-tox-output
|
|
- role: write-root-marker
|
|
root_marker_dir: "src/{{ zuul.project.canonical_name }}/doc/build/html"
|
|
when: zuul_success | bool
|
|
- role: fetch-sphinx-output
|
|
sphinx_output_src: "{{ zuul.project.src_dir }}/doc/build/html/"
|
|
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
|
|
when: zuul_success | bool
|
|
|
|
- hosts: localhost
|
|
roles:
|
|
- create-afs-token
|
|
when: zuul_success | bool
|
|
- role: upload-afs
|
|
afs_target: "{{ afs.path }}/contributors"
|
|
when: zuul_success | bool
|
|
- destroy-afs-token
|
|
when: zuul_success | bool
|