Skip to content

Fixing Image issue in gh_pages (#107) #150

Fixing Image issue in gh_pages (#107)

Fixing Image issue in gh_pages (#107) #150

name: build adocs
on:
push:
branches:
- main
- develop
- yamlDocs
jobs:
adoc_build:
runs-on: ubuntu-latest
name: Asciidoctoring the docs to pretty HTML!
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "./gradlew asciidoctor"
- name: Copy images to build directory
run: cp -r ./micronautpi4j-utils/src/docs/asciidoc/img ./micronautpi4j-utils/build/docs/asciidoc/
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./micronautpi4j-utils/build/docs/asciidoc/
- name: Copy images to build directory
run: cp -r .micronautpi4j-utils/build/docs/asciidoc/img .docs/asciidoc/img