| 1 | name: asciidoctor-docs |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | |
| 8 | jobs: |
| 9 | # This workflow contains a single job called "build" |
| 10 | build: |
| 11 | # The type of runner that the job will run on |
| 12 | runs-on: ubuntu-latest |
| 13 | |
| 14 | # Steps represent a sequence of tasks that will be executed as part of the job |
| 15 | steps: |
| 16 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 17 | - uses: actions/checkout@v3 |
| 18 | |
| 19 | # Includes the AsciiDoctor GitHub Pages Action to convert adoc files to html and publish to gh-pages branch |
| 20 | - name: asciidoctor-ghpages |
| 21 | uses: manoelcampos/[email protected] |
| 22 | with: |
| 23 | asciidoctor_params: -r asciidoctor-diagram -a VERSION=1.6.0 |
| 24 | source_dir: doc |
| 25 | post_build: git add -f *.png |
| 26 | adoc_file_ext: .asciidoc |