File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,19 +21,17 @@ concurrency:
2121jobs :
2222 build-docs :
2323 runs-on : ubuntu-latest
24- container :
25- image : asciidoctor/docker-asciidoctor:latest
2624 steps :
2725 - name : Checkout repository
2826 uses : actions/checkout@v4
2927
3028 - name : Build HTML and PDF
3129 run : |
3230 mkdir -p build
33- # Genera HTML
34- asciidoctor -r asciidoctor-diagram -D build src/main/docs/index.adoc
35- # Genera PDF
36- asciidoctor-pdf -r asciidoctor-diagram -D build src/main/docs/index.adoc
31+ # Genera HTML e PDF tramite container Docker asciidoctor/docker-asciidoctor
32+ docker run --rm -v ${{ github.workspace }}:/documents asciidoctor/docker-asciidoctor \
33+ sh -c "asciidoctor -r asciidoctor-diagram -D /documents/build /documents/src/main/docs/index.adoc && \
34+ asciidoctor-pdf -r asciidoctor-diagram -D /documents/ build /documents/ src/main/docs/index.adoc"
3735
3836 - name : Upload Pages Artifact
3937 uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change @@ -104,3 +104,8 @@ buildNumber.properties
104104
105105/.apt_generated /
106106/.apt_generated_tests /
107+
108+ # Asciidoctor build output
109+ /build /
110+ .asciidoctor /
111+
You can’t perform that action at this time.
0 commit comments