Persist images in the docs build as artifacts
@@ -80,7 +80,7 @@ jobs:
shopt -s extglob globstar nullglob
cd docs
asciidoctor -a revdate=`date +%Y-%m-%d` --failure-level=ERROR *.adoc **/*.adoc
- for a in $(ls *.html **/*.html); do set +x; mkdir -p /tmp/docs/$(dirname $a); cp $a /tmp/docs/$(dirname $a)/; done
+ for a in $(find . -type f -regextype sed -regex '.*\.\(html\|png\)'); do set +x; mkdir -p /tmp/docs/$(dirname $a); cp $a /tmp/docs/$(dirname $a)/; done
set -x
asciidoctor-pdf -a revdate=`date +%Y-%m-%d` *.adoc **/*.adoc
for a in $(ls *.pdf **/*.pdf); do set +x; mkdir -p /tmp/docs/$(dirname $a); cp $a /tmp/docs/$(dirname $a)/; done
