ci: doc: use xz compression for html archive

xz compression reduces the html archive sice from ~350MB to ~90MB (at
the cost of more compression time). Compression has been moved to a
separate step.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-07-26 12:43:50 +02:00 committed by Anas Nashif
parent 5fa56445b3
commit 039888edbf

View File

@ -55,14 +55,17 @@ jobs:
- name: build-docs
run: |
SPHINXOPTS="-q -W -j auto" make -C doc html
tar cvf htmldocs.tar --directory=./doc/_build html
- name: compress-docs
run: |
tar cfJ html-output.tar.xz --directory=doc/_build html
- name: upload-build
uses: actions/upload-artifact@master
continue-on-error: True
with:
name: htmldocs.tar
path: htmldocs.tar
name: html-output
path: html-output.tar.xz
doc-build-pdf:
name: "Documentation Build (PDF)"