-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 937 Bytes
/
publish.yml
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
31
32
33
34
35
name: GitHub Pages Publish
on:
push:
branches: [ main ]
jobs:
adoc_build:
runs-on: ubuntu-latest
name: Asciidoctoring the docs to pretty HTML!
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get build container
id: adocbuild
uses: rhpds/asciidoctor-action@master
with:
program: "asciidoctor -D public/ --backend=html5 docs/*.adoc"
- name: Rename README.html to index.html
run: sudo mv public/README.html public/index.html
- name: Copy asset folder to public/ dir
run: sudo cp -r docs/assets/ public/
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public/