Pipeline for Github Actions for building and publishing AsciiDoc into Github Pages
- Generate key pair
ssh-keygen -t rsa -b 4096 -C "<your email>" -f gh-pages -N ""
-
Put
cat gh-pages.pub
to GitHub repo -> settings -> deploy keys (any name, but set "Allow write access" checkbox) -
Put
cat gh-pages
to GitHub repo -> settings -> secrets (with name ACTIONS_DEPLOY_KEY)
- Install https://asciidoctor.org/
- Install https://asciidoxy.org/
- Run
asciidoxy --base-dir docs --destination-dir ./public --multipage ./docs/index.adoc
- Run
cp -r ./docs/resources ./public/
- Result will store in
public/index.html