James Read
2020-02-25 eab74b8200fd7af0e496ec3a472c3d7e1a9dbe53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: build adocs
 
on:
  push:
    branches:
    - development
 
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: avattathil/asciidoctor-action@master
      with:
          program: "asciidoctor -D public/ --backend=html5 -o index.html docs/README.adoc"
 
    - name: Print execution time
      run: echo "Time ${{ steps.adocbuild.outputs.time }}"
 
    - name: Deploy docs to ghpages
      uses: peaceiris/actions-gh-pages@v3
      with: 
        deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
        publish_branch: gh-pages
        publish_dir: ./public/